From: Paul Querna Date: Thu, 14 Apr 2005 23:42:11 +0000 (+0000) Subject: BRIGADE_NORMALIZE could produce invalid results with 0 length buckets. X-Git-Tag: 2.1.5~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fa473da4301bfc766fcf3908f336b7c1e0dee8a;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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)