]> granicus.if.org Git - apache/commitdiff
mod_proxy_fcgi, mod_authnz_fcgi: stop reading the response and issue an error
authorYann Ylavic <ylavic@apache.org>
Sun, 16 Nov 2014 22:25:32 +0000 (22:25 +0000)
committerYann Ylavic <ylavic@apache.org>
Sun, 16 Nov 2014 22:25:32 +0000 (22:25 +0000)
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

modules/aaa/mod_authnz_fcgi.c
modules/proxy/mod_proxy_fcgi.c

index 401fa9950788df0a20749c6c3775721f13e3c26e..51b15edd4a6e73e476700f2984f69147df23e2f5 100644 (file)
@@ -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.
index 79d142cdbe6c49fe67540da7b18547463c6a0526..c36d192b2429913e22cd00a9ee7c568df13497ae 100644 (file)
@@ -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);