Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
access: fix the username check in htsp access routine
  • Loading branch information
perexg committed Jun 2, 2015
1 parent 8848722 commit bd9a4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/access.c
Expand Up @@ -586,7 +586,7 @@ access_get_hashed(const char *username, const uint8_t digest[20],

if(ae->ae_username[0] != '*') {

if (!username)
if (username == NULL || strcmp(username, ae->ae_username))
continue;

a->aa_match = 1;
Expand Down

0 comments on commit bd9a4c4

Please sign in to comment.