varbinds[0].type = STRING_VALUE;
i = snmp(varbinds, 1, SET);
- if (i <= 0) {
- print_helperr(ERR_RET);
+ if (i == 0) {
+ print_helperr(ERR_SET);
goto exit;
}
+ if (i < 0)
+ break;
if (varbinds[0].len_val == 12) {
if (AuthMac)
} else {
print_help(MAC_NONE_HELP);
}
+
+ if (i < 0) {
+ mvwaddstr(main_sub, 3, 1, _("(insufficient community used)"));
+ wrefresh(main_sub);
+ }
+
noecho();
while (1) {
curr = curr->next;
i++;
}
+ wbkgd(main_sub, A_NORMAL);
+ wrefresh(main_sub);
print_help(DONE_SET);
goto exit;
case KEY_DOWN: