diff options
author | Benny Baumann <BenBE@geshi.org> | 2023-11-13 14:21:50 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2023-11-14 00:27:49 +0100 |
commit | 849f9712703119e7b9924baae9949eeacffacd71 (patch) | |
tree | ae9afa5c2029d8f12008bf98beceaa1274662f5f /modules/pam_unix/passverify.c | |
parent | a51c2cc8cb11c340e3768d6142008862b7ce69c1 (diff) | |
download | pam-849f9712703119e7b9924baae9949eeacffacd71.tar.gz pam-849f9712703119e7b9924baae9949eeacffacd71.tar.bz2 pam-849f9712703119e7b9924baae9949eeacffacd71.zip |
pam_unix: avoid printing NULL values
The value of pp can potentially be NULL. This handles this case when
printing debug output.
Signed-off-by: Benny Baumann <BenBE@geshi.org>
Diffstat (limited to 'modules/pam_unix/passverify.c')
-rw-r--r-- | modules/pam_unix/passverify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_unix/passverify.c b/modules/pam_unix/passverify.c index 81b10d88..9d4ce232 100644 --- a/modules/pam_unix/passverify.c +++ b/modules/pam_unix/passverify.c @@ -157,7 +157,7 @@ PAMH_ARG_DECL(int verify_pwd_hash, p = NULL; /* no longer needed here */ /* the moment of truth -- do we agree with the password? */ - D(("comparing state of pp[%s] and hash[%s]", pp, hash)); + D(("comparing state of pp[%s] and hash[%s]", pp ? pp : "(null)", hash)); if (pp && strcmp(pp, hash) == 0) { retval = PAM_SUCCESS; |