another coverity fix in access.c

This commit is contained in:
Jaroslav Kysela 2014-11-10 14:38:38 +01:00
parent 758a5b9b8d
commit d1f43ae2c0

View 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,