From: Stefan Fritsch Date: Thu, 25 Aug 2011 22:12:43 +0000 (+0000) Subject: fix new breakage introduced by r1161767 X-Git-Tag: 2.3.15~350 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d5a6a474bfcdb72d9c9afe380ce0171af43f4b1b;p=thirdparty%2Fapache%2Fhttpd.git fix new breakage introduced by r1161767 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1161778 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/byterange_filter.c b/modules/http/byterange_filter.c index 74523abcf83..b2e326eaff1 100644 --- a/modules/http/byterange_filter.c +++ b/modules/http/byterange_filter.c @@ -195,8 +195,8 @@ static apr_status_t copy_brigade_range(apr_bucket_brigade *bb, return rv; } + APR_BRIGADE_INSERT_TAIL(bbout, copy); if (e == first) { - APR_BRIGADE_INSERT_TAIL(bbout, copy); if (off_first != start64) { rv = apr_bucket_split(copy, (apr_size_t)(start64 - off_first)); if (rv == APR_ENOTIMPL) { @@ -252,9 +252,6 @@ static apr_status_t copy_brigade_range(apr_bucket_brigade *bb, off_last += start64 - off_first; copy = out_first; } - else { - APR_BRIGADE_INSERT_TAIL(bbout, copy); - } if (end64 - off_last != (apr_uint64_t)e->length) { rv = apr_bucket_split(copy, (apr_size_t)(end64 + 1 - off_last)); if (rv == APR_ENOTIMPL) {