From: Jaroslav Kysela Date: Mon, 10 Nov 2014 13:38:38 +0000 (+0100) Subject: another coverity fix in access.c X-Git-Tag: v4.1~797 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1f43ae2c04ad481f2fd84b4d313a35613daa2e0;p=thirdparty%2Ftvheadend.git another coverity fix in access.c --- diff --git a/src/access.c b/src/access.c index c255ec957..ab6a985ed 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,