summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2008-12-01 14:31:51 +0000
committerEric Covener <covener@apache.org>2008-12-01 14:31:51 +0000
commit5d9555b238f577da070832b90fb53e95bb2f817a (patch)
treef9d7f524cda519a1d413edef22bfd4b9ddf16804 /modules
parent7af7af8f279655eab86b96d33ff5b0d92ef26754 (diff)
downloadhttpd-5d9555b238f577da070832b90fb53e95bb2f817a.tar.gz
To be safe, consume the entire brigade after processing an error bucket in
the HTTP output filter. Submitted by: Rudeiger Pluem Reviewed by: niq, covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@722081 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/http/http_filters.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c
index 5e3dd116f0..7d194c2a22 100644
--- a/modules/http/http_filters.c
+++ b/modules/http/http_filters.c
@@ -1145,7 +1145,11 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(ap_filter_t *f,
}
}
if (eb) {
- ap_die(eb->status, r);
+ int status;
+
+ status = eb->status;
+ apr_brigade_cleanup(b);
+ ap_die(status, r);
return AP_FILTER_ERROR;
}