From: Allan K. Edwards Date: Wed, 27 Feb 2002 21:16:19 +0000 (+0000) Subject: ownership of the brigade is passed in the ap_pass_brigade call X-Git-Tag: 2.0.33~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a547ba6880921a5bbffd75e514296678861e1c07;p=thirdparty%2Fapache%2Fhttpd.git ownership of the brigade is passed in the ap_pass_brigade call 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 --- diff --git a/server/protocol.c b/server/protocol.c index 79a07a0cf34..923c6de854e 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -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,