From: Stefan Fritsch Date: Mon, 29 Aug 2011 15:49:56 +0000 (+0000) Subject: Remove some unused code that was included in r1162131 by accident or merge X-Git-Tag: 2.3.15~316 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d91fd2826015ffbbacf470d90f0735d19052a86;p=apache Remove some unused code that was included in r1162131 by accident or merge error. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1162878 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/byterange_filter.c b/modules/http/byterange_filter.c index 9a16376ecc..70fa1fe29a 100644 --- a/modules/http/byterange_filter.c +++ b/modules/http/byterange_filter.c @@ -159,12 +159,7 @@ static apr_status_t copy_brigade_range(apr_bucket_brigade *bb, * the correct bucket for splitting. */ while (start64 - off_first > (apr_uint64_t)copy->length) { - apr_bucket *tmp; - int i = 0; - if (i++ >= 99999) - return APR_EINVAL; - - tmp = APR_BUCKET_NEXT(copy); + apr_bucket *tmp = APR_BUCKET_NEXT(copy); off_first += (apr_uint64_t)copy->length; APR_BUCKET_REMOVE(copy); apr_bucket_destroy(copy);