]> granicus.if.org Git - apache/commitdiff
Remove some unused code that was included in r1162131 by accident or merge
authorStefan Fritsch <sf@apache.org>
Mon, 29 Aug 2011 15:49:56 +0000 (15:49 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 29 Aug 2011 15:49:56 +0000 (15:49 +0000)
error.

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

modules/http/byterange_filter.c

index 9a16376eccd7b32bc90dcdecf188bcce4d3c52fb..70fa1fe29a89dba2e711fddc328c71282d6343dc 100644 (file)
@@ -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);