From e077e6efc90cdcebc7ca090ec5d055dea82e77ca Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Thu, 23 Jun 2005 20:45:17 +0000 Subject: Fix htdbm password validation for records which included comments. Submitted by: Eric Covener Reviewed by: trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@201455 13f79535-47bb-0310-9956-ffa450edef68 --- support/htdbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'support/htdbm.c') diff --git a/support/htdbm.c b/support/htdbm.c index 2f32bcee44..9af6dad063 100644 --- a/support/htdbm.c +++ b/support/htdbm.c @@ -226,7 +226,7 @@ static apr_status_t htdbm_verify(htdbm_t *htdbm) if (apr_dbm_fetch(htdbm->dbm, key, &val) != APR_SUCCESS) return APR_ENOENT; rec = apr_pstrndup(htdbm->pool, val.dptr, val.dsize); - cmnt = strchr(rec, ';'); + cmnt = strchr(rec, ':'); if (cmnt) strncpy(pwd, rec, cmnt - rec); else -- cgit v1.2.3