From: Yann Ylavic Date: Sun, 16 Nov 2014 22:25:32 +0000 (+0000) Subject: mod_proxy_fcgi, mod_authnz_fcgi: stop reading the response and issue an error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ba340bc185b2b547aa9a88fb85c5fc7195279cd;p=thirdparty%2Fapache%2Fhttpd.git mod_proxy_fcgi, mod_authnz_fcgi: stop reading the response and issue an error when parsing or forwarding the response fails. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1640040 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_authnz_fcgi.c b/modules/aaa/mod_authnz_fcgi.c index 401fa995078..51b15edd4a6 100644 --- a/modules/aaa/mod_authnz_fcgi.c +++ b/modules/aaa/mod_authnz_fcgi.c @@ -642,6 +642,10 @@ static apr_status_t handle_response(const fcgi_provider_conf *conf, "%d", fn, type); break; } + /* Leave on above switch's inner error. */ + if (rv != APR_SUCCESS) { + break; + } /* * Read/discard any trailing padding. diff --git a/modules/proxy/mod_proxy_fcgi.c b/modules/proxy/mod_proxy_fcgi.c index 79d142cdbe6..c36d192b242 100644 --- a/modules/proxy/mod_proxy_fcgi.c +++ b/modules/proxy/mod_proxy_fcgi.c @@ -683,6 +683,10 @@ recv_again: "Got bogus record %d", type); break; } + /* Leave on above switch's inner error. */ + if (rv != APR_SUCCESS) { + break; + } if (plen) { rv = get_data_full(conn, iobuf, plen);