From 7c665317ff66928f5e5f466d17f7a743564cfc89 Mon Sep 17 00:00:00 2001 From: Ruediger Pluem <rpluem@apache.org> Date: Thu, 25 Aug 2011 13:14:02 +0000 Subject: [PATCH] * Remove duplicate condition git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1161552 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/byterange_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/http/byterange_filter.c b/modules/http/byterange_filter.c index fe4c610997..cbc3aabf80 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; -- 2.40.0