varbinds[1].type = NULL_VALUE;
varbinds[1].len_val = 0;
print_help(WAIT_RET);
- if (snmp(varbinds, 2, GET) <= 0) {
+ if (snmp(varbinds, 2, GET) < 2) {
print_helperr(ERR_RET);
goto exit;
}
varbinds[3].len_val = 0;
print_help(WAIT_RET);
- if (snmp(varbinds, 4, GET) <= 0) {
+ if (snmp(varbinds, 4, GET) < 4) {
print_helperr(ERR_RET);
goto exit;
}