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:
Giovanni Bechis
2023-06-09 15:28:32 +00:00
parent af4b652c80
commit b570a7f490

View File

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