Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
another coverity fix in access.c
  • Loading branch information
perexg committed Nov 10, 2014
1 parent 758a5b9 commit d1f43ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/access.c
Expand Up @@ -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,
Expand Down

0 comments on commit d1f43ae

Please sign in to comment.