From d1f43ae2c04ad481f2fd84b4d313a35613daa2e0 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 10 Nov 2014 14:38:38 +0100 Subject: [PATCH] another coverity fix in access.c --- src/access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/access.c b/src/access.c index c255ec95..ab6a985e 100644 --- a/src/access.c +++ b/src/access.c @@ -548,7 +548,7 @@ access_get_hashed(const char *username, const uint8_t digest[20], return a; } - if(superuser_username != NULL && superuser_password != NULL) { + if(username && superuser_username != NULL && superuser_password != NULL) { SHA1_Init(&shactx); SHA1_Update(&shactx, (const uint8_t *)superuser_password,