]> granicus.if.org Git - apache/commitdiff
ownership of the brigade is passed in the ap_pass_brigade call
authorAllan K. Edwards <ake@apache.org>
Wed, 27 Feb 2002 21:16:19 +0000 (21:16 +0000)
committerAllan K. Edwards <ake@apache.org>
Wed, 27 Feb 2002 21:16:19 +0000 (21:16 +0000)
so make sure that it doesn't get left lying around. This tickled
a bug with mod_deflate and resulted in a bucket being compressed
more than once.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93610 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index 79a07a0cf34381d0b3d0f75b66f758f77f0ee86b..923c6de854ef1f04955911a3c980c1f12da3cda0 100644 (file)
@@ -1255,9 +1255,11 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_old_write_filter(
          * pass the whole bundle down the chain. 
          */
         APR_BRIGADE_CONCAT(ctx->bb, bb);
+        bb = ctx->bb;
+        ctx->bb = NULL;
     }
 
-    return ap_pass_brigade(f->next, ctx->bb);
+    return ap_pass_brigade(f->next, bb);
 }
 
 static apr_status_t buffer_output(request_rec *r,