httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1162878 - /httpd/httpd/trunk/modules/http/byterange_filter.c
Date Mon, 29 Aug 2011 15:49:56 GMT
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);



Mime
View raw message