]> granicus.if.org Git - apache/commitdiff
* modules/debug/mod_bucketeer.c (bucketeer_out_filter): Only pass on
authorJoe Orton <jorton@apache.org>
Fri, 16 Dec 2005 13:08:32 +0000 (13:08 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 16 Dec 2005 13:08:32 +0000 (13:08 +0000)
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

modules/debug/mod_bucketeer.c

index 93b2e29b54f91cdae45478625382e05744082c46..2ddd9772554012cc479fabf13f4fffb64181c028 100644 (file)
@@ -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;
+                        }
                     }
                 }
             }