]> granicus.if.org Git - apache/commitdiff
* We need to use > instead of >= as if end64 is the first byte of the next
authorRuediger Pluem <rpluem@apache.org>
Thu, 25 Aug 2011 14:37:52 +0000 (14:37 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 25 Aug 2011 14:37:52 +0000 (14:37 +0000)
  bucket we need to memorize this one and not the one before.

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

modules/http/byterange_filter.c

index f55e4cc49f65355f26546e4cfe301efc234dd929..80328c9eddd25364e9ba77acb27b7cf866513b6a 100644 (file)
@@ -176,7 +176,7 @@ static apr_status_t copy_brigade_range(apr_bucket_brigade *bb,
             first = e;
             off_first = pos;
         }
-        if (!last && (elen64 + pos >= end64)) {
+        if (!last && (elen64 + pos > end64)) {
             last = e;
             off_last = pos;
             break;