aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_unix/passverify.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-11-13 14:21:50 +0100
committerBenny Baumann <BenBE@geshi.org>2023-11-14 00:27:49 +0100
commit849f9712703119e7b9924baae9949eeacffacd71 (patch)
treeae9afa5c2029d8f12008bf98beceaa1274662f5f /modules/pam_unix/passverify.c
parenta51c2cc8cb11c340e3768d6142008862b7ce69c1 (diff)
downloadpam-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.c2
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;