]> granicus.if.org Git - sudo/commitdiff
fixed bug where if you hit return at first sudo prompt it would
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 1 Apr 1995 06:52:50 +0000 (06:52 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 1 Apr 1995 06:52:50 +0000 (06:52 +0000)
still log as a failure

check.c

diff --git a/check.c b/check.c
index d9977fbb2dbbc385fc9471517073e97ed3b285be..08478d15c3afbd140a4e6deec136757608572c9d 100644 (file)
--- 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;