]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
access: fix the username check in htsp access routine
authorJaroslav Kysela <perex@perex.cz>
Tue, 2 Jun 2015 09:26:24 +0000 (11:26 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 2 Jun 2015 09:26:24 +0000 (11:26 +0200)
src/access.c

index efa601c046c0242e9e966f78d92c66cc715d61ef..26d27e41eedba0f26c395f4fa000997966174ccb 100644 (file)
@@ -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;