From: Ruediger Pluem Date: Thu, 25 Aug 2011 13:14:02 +0000 (+0000) Subject: * Remove duplicate condition X-Git-Tag: 2.3.15~365 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c665317ff66928f5e5f466d17f7a743564cfc89;p=thirdparty%2Fapache%2Fhttpd.git * Remove duplicate condition git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1161552 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/byterange_filter.c b/modules/http/byterange_filter.c index fe4c6109975..cbc3aabf805 100644 --- a/modules/http/byterange_filter.c +++ b/modules/http/byterange_filter.c @@ -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;