]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
another coverity fix in access.c
authorJaroslav Kysela <perex@perex.cz>
Mon, 10 Nov 2014 13:38:38 +0000 (14:38 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 10 Nov 2014 13:38:38 +0000 (14:38 +0100)
src/access.c

index c255ec957e647edf3884121b19005e880dddbdf9..ab6a985ede06e23e914f4c86a4969bff712084bf 100644 (file)
@@ -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,