From: Joe Orton Date: Fri, 16 Dec 2005 13:08:32 +0000 (+0000) Subject: * modules/debug/mod_bucketeer.c (bucketeer_out_filter): Only pass on X-Git-Tag: 2.3.0~2662 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=948e9ab8b204b6fa4056558fef8433a81fabbf01;p=apache * modules/debug/mod_bucketeer.c (bucketeer_out_filter): Only pass on the brigade if the pass delimiter is reached and not for any flush delimiter; allows creating brigades with a flush bucket in the middle. Fail if ap_pass_brigade() fails. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357156 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/debug/mod_bucketeer.c b/modules/debug/mod_bucketeer.c index 93b2e29b54..2ddd977255 100644 --- a/modules/debug/mod_bucketeer.c +++ b/modules/debug/mod_bucketeer.c @@ -138,10 +138,13 @@ static apr_status_t bucketeer_out_filter(ap_filter_t *f, p = apr_bucket_flush_create(f->c->bucket_alloc); APR_BRIGADE_INSERT_TAIL(ctx->bb, p); } - if (data[i] == c->flushdelimiter || - data[i] == c->passdelimiter) { - ap_pass_brigade(f->next, ctx->bb); - /* apr_brigade_cleanup(ctx->bb);*/ + if (data[i] == c->passdelimiter) { + apr_status_t rv; + + rv = ap_pass_brigade(f->next, ctx->bb); + if (rv) { + return rv; + } } } }