1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-06 09:01:14 +03:00

Make sure that transient buckets are morphed into real buckets before

the filter returns.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1707163 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Graham Leggett
2015-10-06 22:38:28 +00:00
parent 2da6c9a57a
commit 4d3a3704a2

View File

@@ -736,6 +736,16 @@ AP_DECLARE(apr_status_t) ap_filter_setaside_brigade(ap_filter_t *f,
/* decide what pool we setaside to, request pool or deferred pool? */
if (f->r) {
apr_bucket *e;
for (e = APR_BRIGADE_FIRST(bb); e != APR_BRIGADE_SENTINEL(bb); e =
APR_BUCKET_NEXT(e)) {
if (APR_BUCKET_IS_TRANSIENT(e)) {
int rv = apr_bucket_setaside(e, f->r->pool);
if (rv != APR_SUCCESS) {
return rv;
}
}
}
pool = f->r->pool;
APR_BRIGADE_CONCAT(f->bb, bb);
}