summaryrefslogtreecommitdiff
path: root/buckets
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2021-10-21 12:49:27 +0000
committerGraham Leggett <minfrin@apache.org>2021-10-21 12:49:27 +0000
commitaa80a8cefca8ed257a3f191bd220695ae1c43cc6 (patch)
treed2febf098096597a596ae740c93d5b323685c951 /buckets
parentbf6419ec7abf4ca897c133620ce64044a6c4f9d0 (diff)
downloadapr-aa80a8cefca8ed257a3f191bd220695ae1c43cc6.tar.gz
apr_brigade_split_boundary: Make sure the ignore offset is reset after
each sending of a bucket downstream. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1894446 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buckets')
-rw-r--r--buckets/apr_brigade.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/buckets/apr_brigade.c b/buckets/apr_brigade.c
index 584d64c2d..42823dc91 100644
--- a/buckets/apr_brigade.c
+++ b/buckets/apr_brigade.c
@@ -489,6 +489,7 @@ APR_DECLARE(apr_status_t) apr_brigade_split_boundary(apr_bucket_brigade *bbOut,
apr_bucket_split(e, off);
APR_BUCKET_REMOVE(e);
APR_BRIGADE_INSERT_TAIL(bbOut, e);
+ ignore = 0;
e = APR_BRIGADE_FIRST(bbIn);
}
@@ -504,6 +505,7 @@ APR_DECLARE(apr_status_t) apr_brigade_split_boundary(apr_bucket_brigade *bbOut,
APR_BUCKET_REMOVE(e);
APR_BRIGADE_INSERT_TAIL(bbOut, e);
+ ignore = 0;
outbytes += len;
@@ -532,6 +534,7 @@ APR_DECLARE(apr_status_t) apr_brigade_split_boundary(apr_bucket_brigade *bbOut,
apr_bucket_split(e, off);
APR_BUCKET_REMOVE(e);
APR_BRIGADE_INSERT_TAIL(bbOut, e);
+ ignore = 0;
outbytes += off;
@@ -548,6 +551,7 @@ APR_DECLARE(apr_status_t) apr_brigade_split_boundary(apr_bucket_brigade *bbOut,
APR_BUCKET_REMOVE(e);
APR_BRIGADE_INSERT_TAIL(bbOut, e);
+ ignore = 0;
outbytes += off;