fixed bug where if you hit return at first sudo prompt it would

still log as a failure
This commit is contained in:
Todd C. Miller
1995-04-01 06:52:50 +00:00
parent d6a68fe4a0
commit f650082b1d

View File

@@ -416,7 +416,7 @@ static void check_passwd()
#endif /* USE_GETPASS */ #endif /* USE_GETPASS */
#endif /* HAVE_SKEY */ #endif /* HAVE_SKEY */
if (!pass || *pass == '\0') if (!pass || *pass == '\0')
if (counter == 0) if (counter == TRIES_FOR_PASSWORD)
exit(0); exit(0);
else else
break; break;