]> granicus.if.org Git - apache/commitdiff
cleanup brigade before reusing it
authorStefan Fritsch <sf@apache.org>
Sun, 4 Oct 2009 09:00:26 +0000 (09:00 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 4 Oct 2009 09:00:26 +0000 (09:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@821481 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index 85965d08bc86deb91ee93f1eea945dea6b17286e..20ff6a6e389db0190bad47b9110172b187af5055 100644 (file)
@@ -1310,6 +1310,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_content_length_filter(
                     if (rv != APR_SUCCESS || f->c->aborted) {
                         return rv;
                     }
+                    apr_brigade_cleanup(b);
                     APR_BRIGADE_CONCAT(b, ctx->tmpbb);
                     e = APR_BRIGADE_FIRST(b);