diff options
| -rw-r--r-- | lib/libpam/modules/pam_unix/pam_unix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c index 791bb49c98c4..7afa45a9ac2f 100644 --- a/lib/libpam/modules/pam_unix/pam_unix.c +++ b/lib/libpam/modules/pam_unix/pam_unix.c @@ -351,8 +351,7 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc, const char **argv) PAM_LOG("Encrypted password 1 is: %s", encrypted); PAM_LOG("Encrypted password 2 is: %s", pwd->pw_passwd); - if (strcmp(encrypted, pwd->pw_passwd) != 0 || - (pwd->pw_expire && time(NULL) >= pwd->pw_expire)) + if (strcmp(encrypted, pwd->pw_passwd) != 0) PAM_RETURN(PAM_AUTH_ERR); retval = pam_set_item(pamh, PAM_OLDAUTHTOK, (const void *)pass); |
