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
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));