From: William A. Rowe Jr Date: Sat, 20 Oct 2001 20:43:37 +0000 (+0000) Subject: Fix a nasty GP fault... stop testing buckets after they are passed!!! X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f164fcd293980a2b6fb5c2b15b8e1bc96fc627a7;p=thirdparty%2Fapache%2Fhttpd.git Fix a nasty GP fault... stop testing buckets after they are passed!!! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@91610 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_io.c b/ssl_engine_io.c index 16c97149ae2..1f6ca470576 100644 --- a/ssl_engine_io.c +++ b/ssl_engine_io.c @@ -373,6 +373,7 @@ static apr_status_t ssl_io_filter_Output(ap_filter_t *f, */ if (APR_BUCKET_IS_EOS(bucket) || APR_BUCKET_IS_FLUSH(bucket)) { apr_bucket_brigade *outbb; + int done = APR_BUCKET_IS_EOS(bucket); if ((ret = churn_output(ctx)) != APR_SUCCESS) { return ret; @@ -387,7 +388,7 @@ static apr_status_t ssl_io_filter_Output(ap_filter_t *f, } /* By definition, nothing can come after EOS. */ - if (APR_BUCKET_IS_EOS(bucket)) { + if (done) { break; } }