]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_cgid: Fix storage corruption caused by use of incorrect pool.
authorJeff Trawick <trawick@apache.org>
Tue, 16 Mar 2004 21:10:16 +0000 (21:10 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 16 Mar 2004 21:10:16 +0000 (21:10 +0000)
Reviewed by: stoddard, bnicholes

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

CHANGES
STATUS
modules/generators/mod_cgid.c

diff --git a/CHANGES b/CHANGES
index 0c046ec80cb268efcd287d2d5c15c8d3a931b3e1..91c64bf7eb29363a73a0f39732693699c31f728a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
 Changes with Apache 2.0.49
 
+  *) mod_cgid: Fix storage corruption caused by use of incorrect pool.
+     [Jeff Trawick]
+
   *) Win32: find_read_listeners was not correctly handling multiple
      listeners on the Win32DisableAcceptEx path.  [Bill Stoddard]
 
diff --git a/STATUS b/STATUS
index 76f90d0cefb2ce78286817515796765c50d13e18..564fa910389c23daf05623fac945787ae37b7ff8 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -1,5 +1,5 @@
 APACHE 2.0 STATUS:                                              -*-text-*-
-Last modified at [$Date: 2004/03/16 20:19:43 $]
+Last modified at [$Date: 2004/03/16 21:10:15 $]
 
 Release:
 
@@ -75,10 +75,6 @@ PATCHES TO BACKPORT FROM 2.1
         support/ab.c: r1.138
       +1: jjclar, bnicholes
 
-    *) mod_cgid: Fix storage corruption caused by use of incorrect pool.
-         modules/generators/mod_cgid.c: r1.425
-       +1: trawick, stoddard, bnicholes
-
     *) Use apr_temp_dir_get for htpasswd
        support/htpasswd.c: 1.75
        +1: thommay
index 810040c6bc20d0e88e45cce0cccda8d00afa2f01..8d6ec7f4c82fba82fce828b5f8c47d951e86c3e6 100644 (file)
@@ -812,7 +812,7 @@ static int cgid_init(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp,
     apr_pool_userdata_get((void **)&procnew, userdata_key, main_server->process->pool);
     if (!procnew) {
         first_time = 1;
-        procnew = apr_pcalloc(p, sizeof(*procnew));
+        procnew = apr_pcalloc(main_server->process->pool, sizeof(*procnew));
         procnew->pid = -1;
         procnew->err = procnew->in = procnew->out = NULL;
         apr_pool_userdata_set((const void *)procnew, userdata_key,