]> granicus.if.org Git - apache/commitdiff
* Remove duplicate condition
authorRuediger Pluem <rpluem@apache.org>
Thu, 25 Aug 2011 13:14:02 +0000 (13:14 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 25 Aug 2011 13:14:02 +0000 (13:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1161552 13f79535-47bb-0310-9956-ffa450edef68

modules/http/byterange_filter.c

index fe4c61099758cca0259ee3b211b78f140bd56a95..cbc3aabf805a30da069d95e29f84c0ab113df615 100644 (file)
@@ -170,11 +170,11 @@ static apr_status_t copy_brigade_range(apr_bucket_brigade *bb,
     {
         /* we know that no bucket has undefined length (-1) */
         AP_DEBUG_ASSERT(e->length != (apr_size_t)(-1));
-        if (!first && ((apr_uint64_t)e->length > start64 || (apr_uint64_t)e->length + pos > start64)) {
+        if (!first && ((apr_uint64_t)e->length + pos > start64)) {
             first = e;
             off_first = pos;
         }
-        if (!last && ((apr_uint64_t)e->length >= end64 || (apr_uint64_t)e->length + pos >= end64)) {
+        if (!last && ((apr_uint64_t)e->length + pos >= end64)) {
             last = e;
             off_last = pos;
             break;