From: Bill Stoddard Date: Fri, 6 Jul 2001 18:41:56 +0000 (+0000) Subject: Add error message and return if we fail reading from a bucket in the X-Git-Tag: 2.0.20~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aedbb34ee773f92cd9011d9a5a347e179c816cc4;p=apache Add error message and return if we fail reading from a bucket in the core_outout_filter(). core_output_filter() is in need of a rewrite, it is getting quite crufty. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89507 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index a3e23cb785..fd0d04d5de 100644 --- a/server/core.c +++ b/server/core.c @@ -3176,6 +3176,11 @@ static apr_status_t core_output_filter(ap_filter_t *f, apr_bucket_brigade *b) potential future problems... */ AP_DEBUG_ASSERT(AP_MIN_BYTES_TO_WRITE <= APR_BUCKET_BUFF_SIZE); + if (rv != APR_SUCCESS) { + ap_log_error(APLOG_MARK, APLOG_ERR, rv, c->base_server, + "core_output_filter: Error reading from bucket."); + return rv; + } apr_brigade_write(ctx->b, NULL, NULL, str, n); } apr_brigade_destroy(b);