]> git.decadent.org.uk Git - ap-utils.git/blobdiff - ap-gl/auth.c
Update description to cover all current utilities
[ap-utils.git] / ap-gl / auth.c
index 14936293c14e17bbf8d1baac21bf852eee0b4a11..fe3960ffb2e6b8919853fa584e17894fb2280d1d 100644 (file)
@@ -155,10 +155,12 @@ void atmel_auth()
        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)
@@ -220,6 +222,12 @@ choose_view:
     } else {
         print_help(MAC_NONE_HELP);
     }
+
+    if (i < 0) {
+        mvwaddstr(main_sub, 3, 1, _("(insufficient community used)"));
+        wrefresh(main_sub);
+    }
+
     noecho();
 
     while (1) {
@@ -429,6 +437,8 @@ choose_view:
                curr = curr->next;
                i++;
            }
+           wbkgd(main_sub, A_NORMAL);
+           wrefresh(main_sub);
            print_help(DONE_SET);
            goto exit;
        case KEY_DOWN: