summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/password.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/password.c b/common/password.c
index 43c5e0c..b5b7655 100644
--- a/common/password.c
+++ b/common/password.c
@@ -289,7 +289,8 @@ static int check_passwd(unsigned char *passwd, size_t length)
} else {
d = digest_alloc(PASSWD_SUM);
if (!d) {
- pr_err("No such digest: %s\n", PASSWD_SUM);
+ pr_err("No such digest: %s\n",
+ PASSWD_SUM ? PASSWD_SUM : "NULL");
return -ENOENT;
}