From 4c362dc1ca0459bcedda060b7ec16fd04ca3772d Mon Sep 17 00:00:00 2001 From: "Allan K. Edwards" Date: Wed, 27 Feb 2002 21:16:19 +0000 Subject: [PATCH] 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 --- server/protocol.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.47.3