]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r357328 from trunk:
authorRuediger Pluem <rpluem@apache.org>
Sun, 18 Dec 2005 11:21:05 +0000 (11:21 +0000)
committerRuediger Pluem <rpluem@apache.org>
Sun, 18 Dec 2005 11:21:05 +0000 (11:21 +0000)
* Fix ap_http_chunk_filter to create correct chunks in the case that a
  flush bucket is pre- and postfixed by data buckets in the brigade.

Submitted by: Ruediger Pluem
Reviewed by: Justin Erenkrantz, Joe Orton, Jim Jagielski

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@357456 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/http/chunk_filter.c

diff --git a/CHANGES b/CHANGES
index 883c4d49197da6ab64bbf7b7cb66e5d1aa090d84..f4d8f6c0b959912759af68c9b9d4e6b355f3ae6f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                         -*- coding: utf-8 -*-
 Changes with Apache 2.2.1
 
+  *) Chunk filter: Fix chunk filter to create correct chunks in the case that
+     a flush bucket is surrounded by data buckets. [Ruediger Pluem]
+
   *) SECURITY: CVE-2005-3352 (cve.mitre.org)
      mod_imagemap: Escape untrusted referer header before outputting
      in HTML to avoid potential cross-site scripting.  Change also
index 42e464e2e878009914b10fcb790b3943eb07f58c..71f4662fe4cd99af68adb432c85dfbd09c74a692 100644 (file)
@@ -69,6 +69,8 @@ apr_status_t ap_http_chunk_filter(ap_filter_t *f, apr_bucket_brigade *b)
             }
             if (APR_BUCKET_IS_FLUSH(e)) {
                 flush = e;
+                more = apr_brigade_split(b, APR_BUCKET_NEXT(e));
+                break;
             }
             else if (e->length == (apr_size_t)-1) {
                 /* unknown amount of data (e.g. a pipe) */