From: Todd C. Miller Date: Sat, 1 Apr 1995 06:52:50 +0000 (+0000) Subject: fixed bug where if you hit return at first sudo prompt it would X-Git-Tag: SUDO_1_4_0~491 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f650082b1d0b54e01d7a66951e6dc88c3a234dff;p=sudo fixed bug where if you hit return at first sudo prompt it would still log as a failure --- diff --git a/check.c b/check.c index d9977fbb2..08478d15c 100644 --- a/check.c +++ b/check.c @@ -416,7 +416,7 @@ static void check_passwd() #endif /* USE_GETPASS */ #endif /* HAVE_SKEY */ if (!pass || *pass == '\0') - if (counter == 0) + if (counter == TRIES_FOR_PASSWORD) exit(0); else break;