Merge pull request #75 from terual/master
Null pointer passed as an argument
This commit is contained in:
commit
c7fb491a43
1 changed files with 1 additions and 1 deletions
|
@ -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) ||
|
||||
|
|
Loading…
Add table
Reference in a new issue