diff options
author | Steve Langasek <vorlon@debian.org> | 2019-02-11 22:09:25 -0800 |
---|---|---|
committer | Steve Langasek <vorlon@debian.org> | 2019-02-11 22:09:59 -0800 |
commit | 1a2cb1c4f6c710630ebe46a728bb8b8fb5f68946 (patch) | |
tree | ba50a9673cb6324c5dfcbdad3f5144588772fbfe /modules/pam_timestamp/pam_timestamp.c | |
parent | b12d7595dfcc20c809f3c11c579e34d115b3060e (diff) | |
parent | 668b13da8f830c38388cecac45539972e80cb246 (diff) | |
download | pam-1a2cb1c4f6c710630ebe46a728bb8b8fb5f68946.tar.gz pam-1a2cb1c4f6c710630ebe46a728bb8b8fb5f68946.tar.bz2 pam-1a2cb1c4f6c710630ebe46a728bb8b8fb5f68946.zip |
Merge upstream version 1.3.1
Diffstat (limited to 'modules/pam_timestamp/pam_timestamp.c')
-rw-r--r-- | modules/pam_timestamp/pam_timestamp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pam_timestamp/pam_timestamp.c b/modules/pam_timestamp/pam_timestamp.c index b18efdfd..e29ce6e9 100644 --- a/modules/pam_timestamp/pam_timestamp.c +++ b/modules/pam_timestamp/pam_timestamp.c @@ -211,7 +211,7 @@ check_login_time(const char *ruser, time_t timestamp) if (ut->ut_type != USER_PROCESS) { continue; } - if (strncmp(ruser, ut->ut_user, sizeof(ut->ut_user) != 0)) { + if (strncmp(ruser, ut->ut_user, sizeof(ut->ut_user)) != 0) { continue; } if (oldest_login == 0 || oldest_login > ut->ut_tv.tv_sec) { @@ -608,7 +608,7 @@ pam_sm_open_session(pam_handle_t *pamh, int flags UNUSED, int argc, const char * /* Generate the message. */ text = malloc(strlen(path) + 1 + sizeof(now) + hmac_sha1_size()); if (text == NULL) { - pam_syslog(pamh, LOG_ERR, "unable to allocate memory: %m"); + pam_syslog(pamh, LOG_CRIT, "unable to allocate memory: %m"); return PAM_SESSION_ERR; } p = text; |