diff options
author | Graham Leggett <minfrin@apache.org> | 2021-10-20 21:30:01 +0000 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2021-10-20 21:30:01 +0000 |
commit | bf72faead62eb060a9de046164b2d7f6477a58f6 (patch) | |
tree | fb7678303b6518552ee7fd33ce28b5d557a38c90 /buckets | |
parent | f65813689e5a0061e65eca5d626ebe11d088b87a (diff) | |
download | apr-bf72faead62eb060a9de046164b2d7f6477a58f6.tar.gz |
apr_brigade_split_boundary: Correctly account for the bytes we've written.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1894420 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buckets')
-rw-r--r-- | buckets/apr_brigade.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/buckets/apr_brigade.c b/buckets/apr_brigade.c index 27bcffd96..ffe79765b 100644 --- a/buckets/apr_brigade.c +++ b/buckets/apr_brigade.c @@ -530,6 +530,8 @@ APR_DECLARE(apr_status_t) apr_brigade_split_boundary(apr_bucket_brigade *bbOut, APR_BUCKET_REMOVE(e); APR_BRIGADE_INSERT_TAIL(bbOut, e); + outbytes += off; + e = APR_BRIGADE_FIRST(bbIn); } @@ -543,6 +545,9 @@ APR_DECLARE(apr_status_t) apr_brigade_split_boundary(apr_bucket_brigade *bbOut, APR_BUCKET_REMOVE(e); APR_BRIGADE_INSERT_TAIL(bbOut, e); + + outbytes += off; + continue; } |