From aedbb34ee773f92cd9011d9a5a347e179c816cc4 Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Fri, 6 Jul 2001 18:41:56 +0000 Subject: [PATCH] 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 --- server/core.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.40.0