]> granicus.if.org Git - apache/commitdiff
mod_remoteip: close file in error path
authorGraham Leggett <minfrin@apache.org>
Mon, 10 Jun 2013 14:24:33 +0000 (14:24 +0000)
committerGraham Leggett <minfrin@apache.org>
Mon, 10 Jun 2013 14:24:33 +0000 (14:24 +0000)
trunk patch: http://svn.apache.org/r1491234
Submitted by: jailletc36
Reviewed by: covener, minfrin

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1491464 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/metadata/mod_remoteip.c

diff --git a/CHANGES b/CHANGES
index c2682bc006ed1a0b3140a3ccc79511e364d2d615..b4352fc8e9510ad27090cd36bbf5f1530f0fb792 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,8 @@
 
 Changes with Apache 2.4.5
 
+  *) mod_remoteip: close file in error path. [Christophe Jaillet]
+
   *) mod_lua: Sync 2.4 branch with trunk. This includes (but is not limited to)
      Server pools, new apr functions for the request_rec table, input/output
      filters, LuaCodeCache, LuaMapHandler and multipart form data handling.
diff --git a/STATUS b/STATUS
index 44578d97f9e41b1bcfd93152837d3539c45f5ba6..a3d5db636390387968ad889f5025effa03e5d7b4 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -100,11 +100,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
       2.4.x patch: trunk patch works modulo CHANGES and mmn bump
       +1: minfrin, jim, sf
 
-    * mod_remoteip: close file in error path
-      trunk patch: http://svn.apache.org/r1491234
-      2.4.x patch: trunk patch works
-      +1: jailletc36, covener, minfrin
-
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
index 79aa6a940ab62d823151f5fa24960adddb904ee7..b0af3a328982392dad16080c9471d59b4ccd6051 100644 (file)
@@ -203,6 +203,7 @@ static const char *proxylist_read(cmd_parms *cmd, void *cfg,
             }
             errmsg = proxies_set(cmd, cfg, arg);
             if (errmsg) {
+                ap_cfg_closefile(cfp);
                 errmsg = apr_psprintf(cmd->pool, "%s at line %d of %s",
                                       errmsg, cfp->line_number, filename);
                 return errmsg;