mirror of
https://github.com/apache/httpd.git
synced 2025-08-16 16:17:23 +00:00
do not run strlen(3) on a NULL value
bz #66639 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910334 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -193,6 +193,10 @@ static apr_status_t htdbm_verify(htdbm_t *htdbm)
|
||||
char *pwd;
|
||||
char *rec, *cmnt;
|
||||
|
||||
if(htdbm->username == NULL) {
|
||||
return APR_ENOENT;
|
||||
}
|
||||
|
||||
key.dptr = htdbm->username;
|
||||
key.dsize = strlen(htdbm->username);
|
||||
if (!apr_dbm_exists(htdbm->dbm, key))
|
||||
|
Reference in New Issue
Block a user