]> granicus.if.org Git - apache/commitdiff
Merge r1590437, r1592500 from trunk:
authorJim Jagielski <jim@apache.org>
Wed, 7 May 2014 12:49:40 +0000 (12:49 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 7 May 2014 12:49:40 +0000 (12:49 +0000)
mod_proxy_fcgi: Don't segfault when failing to connect to the backend.

now understood why users haven't reported the segfault (yet) when mod_proxy_fcgi
can't connect to the application

Submitted by: trawick
Reviewed/backported by: jim

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

CHANGES
STATUS
modules/proxy/mod_proxy_fcgi.c

diff --git a/CHANGES b/CHANGES
index a1042bf5b656df83dde4cc01f36d9b5dc0addcfd..613eac5cbcdc023bc5b3ed3d06de27cba73633b7 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 
 Changes with Apache 2.4.10
 
+  *) mod_proxy_fcgi: Don't segfault when failing to connect to the backend.
+     (regression in 2.4.9 release) [Jeff Trawick]
+
   *) mod_authn_socache: Fix crash at startup in certain configurations.
      PR 56371. (regression in 2.4.7) [Jan Kaluza]
 
diff --git a/STATUS b/STATUS
index 1296ae8d25af612f0a773cd242e632d8119c6446..b91a6cbb8429d758c5adc7daac5d9d6ceb6d50f6 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -100,11 +100,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-   * mod_proxy_fcgi: Don't crash when connect to the backend fails.
-     trunk patch: http://svn.apache.org/r1590437 (and additional CHANGES tweak in r1592500)
-     2.4.x patch: trunk patch works other than CHANGES
-     +1: trawick, covener, ylavic
-
    * mod_expires: don't add Expires header to error responses (4xx/5xx),
                   be they generated or forwarded. PR 55669.
      trunk patch: http://svn.apache.org/r1584430
index dd2607c34422bf2407b156ee777ef94c593a3953..be4c3a21e43068623657b0624547f1582df6677a 100644 (file)
@@ -758,7 +758,7 @@ static int proxy_fcgi_handler(request_rec *r, proxy_worker *worker,
     int status;
     char server_portstr[32];
     conn_rec *origin = NULL;
-    proxy_conn_rec *backend;
+    proxy_conn_rec *backend = NULL;
 
     proxy_dir_conf *dconf = ap_get_module_config(r->per_dir_config,
                                                  &proxy_module);