From f650082b1d0b54e01d7a66951e6dc88c3a234dff Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 1 Apr 1995 06:52:50 +0000 Subject: [PATCH] fixed bug where if you hit return at first sudo prompt it would still log as a failure --- check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.0