aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_timestamp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pam_timestamp')
-rw-r--r--modules/pam_timestamp/pam_timestamp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_timestamp/pam_timestamp.c b/modules/pam_timestamp/pam_timestamp.c
index 08300164..7c5457c4 100644
--- a/modules/pam_timestamp/pam_timestamp.c
+++ b/modules/pam_timestamp/pam_timestamp.c
@@ -557,7 +557,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv)
}
#ifdef USE_LOGIND
struct passwd *pwd = pam_modutil_getpwnam(pamh, ruser);
- if (pwd != NULL) {
+ if (pwd == NULL) {
return PAM_SERVICE_ERR;
}
if (check_login_time(pwd->pw_uid, then) != PAM_SUCCESS)