X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ap-utils.git;a=blobdiff_plain;f=ap-gl%2Fauth.c;h=c1c800bb67ea5f68f3c8557624e71026136bbd43;hp=14936293c14e17bbf8d1baac21bf852eee0b4a11;hb=63444196dd1edb154f81d9418b3d0bc2367163e5;hpb=16204dfc7715783c2ebdfb55fc44fb9344613a76 diff --git a/ap-gl/auth.c b/ap-gl/auth.c index 1493629..c1c800b 100644 --- a/ap-gl/auth.c +++ b/ap-gl/auth.c @@ -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) {