Try to bail out if permitted user suppleis incorrect password.

This commit is contained in:
Jesse Smith 2016-06-24 16:01:35 -03:00
parent f3958f04ad
commit 720db72121

2
doas.c
View file

@ -410,6 +410,7 @@ main(int argc, char **argv)
case PAM_MAXTRIES:
syslog(LOG_AUTHPRIV | LOG_NOTICE,
"failed auth for %s", myname);
errx(EXIT_FAILURE, "second authentication failed");
break;
default:
@ -423,6 +424,7 @@ main(int argc, char **argv)
case PAM_MAXTRIES:
syslog(LOG_AUTHPRIV | LOG_NOTICE,
"failed auth for %s", myname);
errx(EXIT_FAILURE, "authentication failed");
break;
default: