From 8fa473da4301bfc766fcf3908f336b7c1e0dee8a Mon Sep 17 00:00:00 2001 From: Paul Querna Date: Thu, 14 Apr 2005 23:42:11 +0000 Subject: [PATCH] BRIGADE_NORMALIZE could produce invalid results with 0 length buckets. 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/core_filters.c b/server/core_filters.c index 499b1f80d70..44359d86fa6 100644 --- a/server/core_filters.c +++ b/server/core_filters.c @@ -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) -- 2.47.2