You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2005/04/15 01:42:11 UTC
svn commit: r161367 - httpd/httpd/trunk/server/core_filters.c
Author: pquerna
Date: Thu Apr 14 16:42:11 2005
New Revision: 161367
URL: http://svn.apache.org/viewcvs?view=rev&rev=161367
Log:
BRIGADE_NORMALIZE could produce invalid results with 0 length buckets.
Submitted By: Rici Lake
Modified:
httpd/httpd/trunk/server/core_filters.c
Modified: httpd/httpd/trunk/server/core_filters.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/server/core_filters.c?view=diff&r1=161366&r2=161367
==============================================================================
--- httpd/httpd/trunk/server/core_filters.c (original)
+++ httpd/httpd/trunk/server/core_filters.c Thu Apr 14 16:42:11 2005
@@ -105,7 +105,9 @@
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)