diff options
author | Paul Wouters <pwouters@redhat.com> | 2012-04-11 21:13:14 +0200 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2012-04-11 21:13:14 +0200 |
commit | 1329c68b19daa6d5793dd672db73ebe85465eea9 (patch) | |
tree | 99765fcc4b18a42e4ede168cba28d05267d88e36 /modules/pam_unix/pam_unix_passwd.c | |
parent | 3c69856acf9af74368b789b1ed867b433db0ed02 (diff) | |
download | pam-1329c68b19daa6d5793dd672db73ebe85465eea9.tar.gz pam-1329c68b19daa6d5793dd672db73ebe85465eea9.tar.bz2 pam-1329c68b19daa6d5793dd672db73ebe85465eea9.zip |
Check for crypt() failure returning NULL.
* modules/pam_unix/pam_unix_passwd.c (pam_sm_chauthtok): Adjust syslog message.
* modules/pam_unix/passverify.c (create_password_hash): Check for crypt()
returning NULL.
Diffstat (limited to 'modules/pam_unix/pam_unix_passwd.c')
-rw-r--r-- | modules/pam_unix/pam_unix_passwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c index e9059d3c..9e1302d5 100644 --- a/modules/pam_unix/pam_unix_passwd.c +++ b/modules/pam_unix/pam_unix_passwd.c @@ -800,7 +800,7 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc, const char **argv) tpass = create_password_hash(pamh, pass_new, ctrl, rounds); if (tpass == NULL) { pam_syslog(pamh, LOG_CRIT, - "out of memory for password"); + "crypt() failure or out of memory for password"); pass_new = pass_old = NULL; /* tidy up */ unlock_pwdf(); return PAM_BUF_ERR; |