]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
BRIGADE_NORMALIZE could produce invalid results with 0 length buckets.
authorPaul Querna <pquerna@apache.org>
Thu, 14 Apr 2005 23:42:11 +0000 (23:42 +0000)
committerPaul Querna <pquerna@apache.org>
Thu, 14 Apr 2005 23:42:11 +0000 (23:42 +0000)
Submitted By: Rici Lake

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

server/core_filters.c

index 499b1f80d7016f9eac2e913ec51fb187132092ac..44359d86fa6fdf0eca9cafabc0f906ccf3b21189 100644 (file)
@@ -105,7 +105,9 @@ do { \
             apr_bucket_delete(e); \
             e = d; \
         } \
-        e = APR_BUCKET_NEXT(e); \
+        else { \
+            e = APR_BUCKET_NEXT(e); \
+        } \
     } while (!APR_BRIGADE_EMPTY(b) && (e != APR_BRIGADE_SENTINEL(b))); \
 } while (0)