]> granicus.if.org Git - apache/commitdiff
Fix a bug in the core_output_filter. If we are buffering, it helps
authorRyan Bloom <rbb@apache.org>
Fri, 23 Nov 2001 19:28:04 +0000 (19:28 +0000)
committerRyan Bloom <rbb@apache.org>
Fri, 23 Nov 2001 19:28:04 +0000 (19:28 +0000)
to read from the correct bucket.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92146 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index e690fcbd273d4d694897eeab3f54a3a7eef3b428..dcdeeff7e518622f7ee071db03a30c930f3e5935 100644 (file)
@@ -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);