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-Tag: 2.5.0-alpha~4251 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb9b6affd5fc3e8d792a8fcef52a10de66447f75;p=apache 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 ee51512596..f6a63cde4b 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 c36071e08a..88fba31af1 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);