From: Bart Lauret Date: Tue, 13 Mar 2012 07:42:33 +0000 (+0100) Subject: Null pointer passed as an argument X-Git-Tag: 2.99~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be49ddd007337a3a2109c42a0a3f00434b44664c;p=thirdparty%2Ftvheadend.git Null pointer passed as an argument in line 181 in strcmp(ae->ae_password, password) --- diff --git a/src/access.c b/src/access.c index 080d6d848..2710ec0f4 100644 --- a/src/access.c +++ b/src/access.c @@ -174,7 +174,7 @@ access_verify(const char *username, const char *password, if(ae->ae_username[0] != '*') { /* acl entry requires username to match */ - if(username == NULL) + if(username == NULL || password == NULL) continue; /* Didn't get one */ if(strcmp(ae->ae_username, username) ||