From: William A. Rowe Jr Date: Mon, 4 Nov 2002 19:41:52 +0000 (+0000) Subject: Appears we forgot to check the possibility of errors coming from the X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=038216674a96dadb40d5a04f1294affba42da901;p=thirdparty%2Fapache%2Fhttpd.git Appears we forgot to check the possibility of errors coming from the write brigade passed down from the content generator through the body and protocol filters. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@97397 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_io.c b/ssl_engine_io.c index 2deb56b2f97..404ca1e8880 100644 --- a/ssl_engine_io.c +++ b/ssl_engine_io.c @@ -690,8 +690,13 @@ static apr_status_t ssl_io_filter_Output(ap_filter_t *f, /* read filter */ const char *data; apr_size_t len; + + status = apr_bucket_read(bucket, &data, &len, APR_BLOCK_READ); + + if (APR_STATUS_IS_EOF(status) && (status != APR_SUCCESS)) { + break; + } - apr_bucket_read(bucket, &data, &len, APR_BLOCK_READ); status = ssl_filter_write(f, data, len); apr_bucket_delete(bucket);