diff options
Diffstat (limited to 'modules/pam_unix/unix_chkpwd.c')
-rw-r--r-- | modules/pam_unix/unix_chkpwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pam_unix/unix_chkpwd.c b/modules/pam_unix/unix_chkpwd.c index 0ef2ccd8..236ad5c2 100644 --- a/modules/pam_unix/unix_chkpwd.c +++ b/modules/pam_unix/unix_chkpwd.c @@ -229,11 +229,11 @@ static int _unix_verify_password(const char *name, const char *p, int nullok) * stored string with the subset of bigcrypt's result. * Bug 521314. */ - if (salt_len == 13 && strlen(pp) > salt_len) { + if (pp && salt_len == 13 && strlen(pp) > salt_len) { _pam_overwrite(pp+salt_len); } - if (strcmp(pp, salt) == 0) { + if (pp && strcmp(pp, salt) == 0) { retval = PAM_SUCCESS; } } |