From: Graham Leggett <minfrin@apache.org>
Date: Thu, 23 May 2013 16:31:01 +0000 (+0000)
Subject: Ensure that any meta buckets are stripped while parsing a chunk.
X-Git-Tag: 2.5.0-alpha~5418
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98552db2154a3fcb9ae4da0b0d6b028917d9bd6c;p=apache

Ensure that any meta buckets are stripped while parsing a chunk.


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

diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c
index 7a0b79ee80..a794d95e8d 100644
--- a/modules/http/http_filters.c
+++ b/modules/http/http_filters.c
@@ -331,9 +331,9 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b,
         APR_BRIGADE_INSERT_TAIL(b, e);
         return APR_SUCCESS;
     }
-    apr_brigade_cleanup(b);
 
     do {
+        apr_brigade_cleanup(b);
         again = 0; /* until further notice */
 
         /* read and handle the brigade */