]> git.decadent.org.uk Git - ap-utils.git/blobdiff - ap-gl/auth.c
Imported Upstream version 1.5~pre3~a
[ap-utils.git] / ap-gl / auth.c
index 14936293c14e17bbf8d1baac21bf852eee0b4a11..c1c800bb67ea5f68f3c8557624e71026136bbd43 100644 (file)
@@ -159,7 +159,10 @@ void atmel_auth()
            print_helperr(ERR_RET);
            goto exit;
        }
+       if (i < 0)
+           break;
 
+       
        if (varbinds[0].len_val == 12) {
            if (AuthMac)
                free(AuthMac);
@@ -220,6 +223,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) {