From: Jaroslav Kysela Date: Tue, 2 Jun 2015 09:26:24 +0000 (+0200) Subject: access: fix the username check in htsp access routine X-Git-Tag: v4.2.1~2395 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd9a4c4369aedf7f7b523cf029b4f4297f3683cd;p=thirdparty%2Ftvheadend.git access: fix the username check in htsp access routine --- diff --git a/src/access.c b/src/access.c index efa601c04..26d27e41e 100644 --- a/src/access.c +++ b/src/access.c @@ -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;