You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2011/08/29 17:49:56 UTC

svn commit: r1162878 - /httpd/httpd/trunk/modules/http/byterange_filter.c

Author: sf
Date: Mon Aug 29 15:49:56 2011
New Revision: 1162878

URL: http://svn.apache.org/viewvc?rev=1162878&view=rev
Log:
Remove some unused code that was included in r1162131 by accident or merge
error.

Modified:
    httpd/httpd/trunk/modules/http/byterange_filter.c

Modified: httpd/httpd/trunk/modules/http/byterange_filter.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/byterange_filter.c?rev=1162878&r1=1162877&r2=1162878&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/byterange_filter.c (original)
+++ httpd/httpd/trunk/modules/http/byterange_filter.c Mon Aug 29 15:49:56 2011
@@ -159,12 +159,7 @@ static apr_status_t copy_brigade_range(a
                      * 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);