]> granicus.if.org Git - apache/commitdiff
httxt2dbm: Correct length computation for the 'value' stored in the DBM file PR...
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 14 Dec 2012 22:40:38 +0000 (22:40 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 14 Dec 2012 22:40:38 +0000 (22:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1422135 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
support/httxt2dbm.c

diff --git a/CHANGES b/CHANGES
index 477bd393de6daf3d67b1cb672867683cd6d398e2..c6759cb329cb9bf955ec29fda61f4a8879e1e23d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) httxt2dbm: Correct length computation for the 'value' stored in the DBM file
+     PR 47650 [jon buckybox com]
+
   *) mod_ssl: Add support for OpenSSL configuration commands [Stephen Henson]
 
   *) EventOpt MPM
index 8792f944b9df04a5556cca0decc13054a8160550..12606c3a5eb0e1c42f0205d13755162f87a9cc10 100644 (file)
@@ -154,7 +154,7 @@ static apr_status_t to_dbm(apr_dbm_t *dbm, apr_file_t *fp, apr_pool_t *pool)
         }
 
         dbmval.dptr = apr_pstrmemdup(p, value,  c - value);
-        dbmval.dsize = (c - line);
+        dbmval.dsize = (c - value);
 
         if (verbose) {
             apr_file_printf(errfile, "    '%s' -> '%s'"NL,