]> git.decadent.org.uk Git - ap-utils.git/blobdiff - ap-gl/auth.c
Imported Upstream version 1.5
[ap-utils.git] / ap-gl / auth.c
index c1c800bb67ea5f68f3c8557624e71026136bbd43..fe3960ffb2e6b8919853fa584e17894fb2280d1d 100644 (file)
@@ -155,14 +155,13 @@ 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)
+       if (i < 0)
            break;
 
-       
        if (varbinds[0].len_val == 12) {
            if (AuthMac)
                free(AuthMac);
@@ -438,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: