From: Ryan Bloom Date: Fri, 23 Nov 2001 19:28:04 +0000 (+0000) Subject: Fix a bug in the core_output_filter. If we are buffering, it helps X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2ae31e8fc3100b16d5bbaaeb8d144f90ae5020d;p=apache Fix a bug in the core_output_filter. If we are buffering, it helps to read from the correct bucket. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92146 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index e690fcbd27..dcdeeff7e5 100644 --- a/server/core.c +++ b/server/core.c @@ -3087,7 +3087,7 @@ static apr_status_t core_output_filter(ap_filter_t *f, apr_bucket_brigade *b) temp = APR_BRIGADE_FIRST(b); while (temp != e) { apr_bucket *d; - rv = apr_bucket_read(e, &str, &n, APR_BLOCK_READ); + rv = apr_bucket_read(temp, &str, &n, APR_BLOCK_READ); apr_brigade_write(temp_brig, NULL, NULL, str, n); d = temp; temp = APR_BUCKET_NEXT(temp);