]> granicus.if.org Git - apache/commitdiff
Fix htdbm password validation for records which included comments.
authorJeff Trawick <trawick@apache.org>
Thu, 23 Jun 2005 20:45:17 +0000 (20:45 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 23 Jun 2005 20:45:17 +0000 (20:45 +0000)
Submitted by: Eric Covener <covener gmail.com>
Reviewed by:  trawick

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@201455 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
support/htdbm.c

diff --git a/CHANGES b/CHANGES
index c0a1eb2b54a6f5ed7541a3c545acdb86e15397a8..838e5cddaa36001c43ffe07c202fd8b1ca0ffa14 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
 Changes with Apache 2.1.6
   [Remove entries to the current 2.0 section below, when backported]
 
+  *) Fix htdbm password validation for records which included comments.
+     [Eric Covener <covener gmail.com>]
+
   *) SECURITY: 
      proxy HTTP: If a response contains both Transfer-Encoding and a 
      Content-Length, remove the Content-Length and don't reuse the
index 2f32bcee44fcdf4419691eba00d5b7579dcac755..9af6dad063e0b73e30d91cc90af6d4a0d267fdae 100644 (file)
@@ -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