Add missing check for right-now-expired password

This commit is contained in:
Andrey A. Chernov 2002-01-19 02:45:24 +00:00
parent 3f9a326a7a
commit d54c36388e

View File

@ -152,6 +152,8 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv)
retval = strcmp(encrypted, pwd->pw_passwd) == 0 ?
PAM_SUCCESS : PAM_AUTH_ERR;
if (pwd->pw_expire && time(NULL) >= pwd->pw_expire)
retval = PAM_AUTH_ERR;
}
else {