From eca56ae3261d6952f4c4d67873d5629dbfcf40c2 Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Fri, 14 Dec 2012 22:40:38 +0000 Subject: [PATCH] httxt2dbm: Correct length computation for the 'value' stored in the DBM file PR 47650 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1422135 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ support/httxt2dbm.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 477bd393de..c6759cb329 100644 --- 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 diff --git a/support/httxt2dbm.c b/support/httxt2dbm.c index 8792f944b9..12606c3a5e 100644 --- a/support/httxt2dbm.c +++ b/support/httxt2dbm.c @@ -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, -- 2.40.0