Null pointer passed as an argument

in line 181 in strcmp(ae->ae_password, password)
This commit is contained in:
Bart Lauret 2012-03-13 08:42:33 +01:00
parent e6cf570807
commit be49ddd007

View file

@ -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) ||