Blame SOURCES/httpd-2.4.6-r1553540.patch
|
|
008793 |
# ./pullrev.sh 1553540
|
|
|
008793 |
|
|
|
008793 |
https://bugzilla.redhat.com/show_bug.cgi?id=1040447
|
|
|
008793 |
|
|
|
008793 |
http://svn.apache.org/viewvc?view=revision&revision=1553540
|
|
|
008793 |
|
|
|
008793 |
--- httpd-2.4.6/modules/proxy/mod_proxy_http.c
|
|
|
008793 |
+++ httpd-2.4.6/modules/proxy/mod_proxy_http.c
|
|
|
008793 |
@@ -710,7 +710,7 @@
|
|
|
008793 |
force10 = 0;
|
|
|
008793 |
}
|
|
|
008793 |
|
|
|
008793 |
- header_brigade = apr_brigade_create(p, origin->bucket_alloc);
|
|
|
008793 |
+ header_brigade = apr_brigade_create(p, bucket_alloc);
|
|
|
008793 |
rv = ap_proxy_create_hdrbrgd(p, header_brigade, r, p_conn,
|
|
|
008793 |
worker, conf, uri, url, server_portstr,
|
|
|
008793 |
&old_cl_val, &old_te_val);
|
|
|
008793 |
@@ -1813,6 +1813,10 @@
|
|
|
008793 |
}
|
|
|
008793 |
} while (interim_response && (interim_response < AP_MAX_INTERIM_RESPONSES));
|
|
|
008793 |
|
|
|
008793 |
+ /* We have to cleanup bb brigade, because buckets inserted to it could be
|
|
|
008793 |
+ * created from scpool and this pool can be freed before this brigade. */
|
|
|
008793 |
+ apr_brigade_cleanup(bb);
|
|
|
008793 |
+
|
|
|
008793 |
/* See define of AP_MAX_INTERIM_RESPONSES for why */
|
|
|
008793 |
if (interim_response >= AP_MAX_INTERIM_RESPONSES) {
|
|
|
008793 |
return ap_proxyerror(r, HTTP_BAD_GATEWAY,
|