From: Joe Orton Date: Fri, 23 Mar 2007 11:46:10 +0000 (+0000) Subject: * server/core_filters.c (ap_core_output_filter): Fail quickly with X-Git-Tag: 2.3.0~1853 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5448a22c708c8764992780bc8bb001838a59efec;p=thirdparty%2Fapache%2Fhttpd.git * server/core_filters.c (ap_core_output_filter): Fail quickly with APR_ECONNABORTED if the c->aborted flag is already set. PR: 39605 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@521681 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core_filters.c b/server/core_filters.c index 551b69a2fe0..f06b976cd18 100644 --- a/server/core_filters.c +++ b/server/core_filters.c @@ -352,6 +352,12 @@ apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *new_bb) apr_bucket *bucket, *next; apr_size_t bytes_in_brigade, non_file_bytes_in_brigade; + /* Fail quickly if the connection has already been aborted. */ + if (c->aborted) { + apr_brigade_cleanup(new_bb); + return APR_ECONNABORTED; + } + if (ctx == NULL) { apr_status_t rv; ctx = apr_pcalloc(c->pool, sizeof(*ctx));