From: Jeff Trawick Date: Sun, 27 Apr 2014 18:10:03 +0000 (+0000) Subject: mod_proxy_fcgi: Don't segfault when failing to connect to the backend. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c90ff327d4ec18754ff6b9c87716c5a52df6e413;p=thirdparty%2Fapache%2Fhttpd.git mod_proxy_fcgi: Don't segfault when failing to connect to the backend. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1590437 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index ee515125964..f6a63cde4b7 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) mod_proxy_fcgi: Don't segfault when failing to connect to the backend. + [Jeff Trawick] + *) Add the ldap-search option to mod_authnz_ldap, allowing authorization to be based on arbitrary expressions that do not include the username. [Graham Leggett] diff --git a/modules/proxy/mod_proxy_fcgi.c b/modules/proxy/mod_proxy_fcgi.c index c36071e08a4..88fba31af11 100644 --- a/modules/proxy/mod_proxy_fcgi.c +++ b/modules/proxy/mod_proxy_fcgi.c @@ -760,7 +760,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);