diff options
Diffstat (limited to '')
-rw-r--r-- | support/htdbm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/support/htdbm.c b/support/htdbm.c index c2f8f3f01a..5cbd3f2639 100644 --- a/support/htdbm.c +++ b/support/htdbm.c @@ -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)) |