Merge pull request #75 from terual/master

Null pointer passed as an argument
This commit is contained in:
Andreas Öman 2012-03-13 19:52:07 -07:00
commit c7fb491a43

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