]> granicus.if.org Git - apache/commitdiff
fix new breakage introduced by r1161767
authorStefan Fritsch <sf@apache.org>
Thu, 25 Aug 2011 22:12:43 +0000 (22:12 +0000)
committerStefan Fritsch <sf@apache.org>
Thu, 25 Aug 2011 22:12:43 +0000 (22:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1161778 13f79535-47bb-0310-9956-ffa450edef68

modules/http/byterange_filter.c

index 74523abcf833a1ea14e7af50e50b24ce5644c137..b2e326eaff15bad7118fdaf904e81099257bdf3b 100644 (file)
@@ -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) {