summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pam_cifscreds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pam_cifscreds.c b/pam_cifscreds.c
index 5d99c2d..eb9851d 100644
--- a/pam_cifscreds.c
+++ b/pam_cifscreds.c
@@ -338,7 +338,7 @@ static int cifscreds_pam_update(pam_handle_t *ph, const char *user, const char *
key_serial_t key = key_add(currentaddress, user, password, keytype);
if (key <= 0) {
pam_syslog(ph, LOG_ERR, "error: Update credential key for %s: %s",
- currentaddress, strerror(errno));
+ (currentaddress ?: "(null)"), strerror(errno));
}
}