Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > 380bd1f756d9c44bb76748d1f4d4e6d6 > files > 42

apache-2.2.17-5.2.mga1.src.rpm

diff -p -up httpd-2.2.17/modules/http/http_filters.c.orig httpd-2.2.17/modules/http/http_filters.c
--- httpd-2.2.17/modules/http/http_filters.c.orig	2010-11-26 18:58:08.293450027 -0200
+++ httpd-2.2.17/modules/http/http_filters.c	2010-11-26 20:32:31.429450003 -0200
@@ -1591,7 +1591,7 @@ apr_status_t ap_http_outerror_filter(ap_
 {
     request_rec *r = f->r;
     outerror_filter_ctx_t *ctx = (outerror_filter_ctx_t *)(f->ctx);
-    apr_bucket *e;
+    apr_bucket *e, *next;
 
     /* Create context if none is present */
     if (!ctx) {
@@ -1639,12 +1639,13 @@ apr_status_t ap_http_outerror_filter(ap_
      */
     if (ctx->seen_eoc) {
         for (e = APR_BRIGADE_FIRST(b);
-             e != APR_BRIGADE_SENTINEL(b);
-             e = APR_BUCKET_NEXT(e))
+             e != APR_BRIGADE_SENTINEL(b);)
         {
+            next = APR_BUCKET_NEXT(e);
             if (!APR_BUCKET_IS_METADATA(e)) {
                 APR_BUCKET_REMOVE(e);
             }
+            e = next;
         }
     }