]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Remove dead, wrong code
authorJim Jagielski <jim@apache.org>
Mon, 29 Aug 2011 15:59:39 +0000 (15:59 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 29 Aug 2011 15:59:39 +0000 (15:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1162885 13f79535-47bb-0310-9956-ffa450edef68

modules/http/byterange_filter.c

index cb63149fc43495029255620c9ec665337e9f68f6..6843df1bf89bd3f6f15200f0bf0e93ae2d3d6119 100644 (file)
@@ -137,7 +137,6 @@ static apr_status_t copy_brigade_range(apr_bucket_brigade *bb,
             if (off_first != start64) {
                 rv = apr_bucket_split(copy, (apr_size_t)(start64 - off_first));
                 if (rv == APR_ENOTIMPL) {
-                    int i;
                     rv = apr_bucket_read(copy, &s, &len, APR_BLOCK_READ);
                     if (rv != APR_SUCCESS) {
                         apr_brigade_cleanup(bbout);
@@ -148,14 +147,8 @@ static apr_status_t copy_brigade_range(apr_bucket_brigade *bb,
                      * of shorter length. So read and delete until we reached
                      * the correct bucket for splitting.
                      */
-                    i = 0;
                     while (start64 - off_first > (apr_uint64_t)copy->length) {
-                        apr_bucket *tmp;
-                        /* don't allow inf. spin */
-                        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);