From: Stefan Fritsch Date: Thu, 25 Aug 2011 21:43:32 +0000 (+0000) Subject: avoid inserting the same bucket into bbout twice, causing an endless loop X-Git-Tag: 2.3.15~351 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bf56b5ddb29bb625bf85e4020ec018a055c64d8;p=thirdparty%2Fapache%2Fhttpd.git avoid inserting the same bucket into bbout twice, causing an endless loop git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1161767 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/byterange_filter.c b/modules/http/byterange_filter.c index f4b292ad84d..74523abcf83 100644 --- a/modules/http/byterange_filter.c +++ b/modules/http/byterange_filter.c @@ -195,8 +195,8 @@ static apr_status_t copy_brigade_range(apr_bucket_brigade *bb, return rv; } - APR_BRIGADE_INSERT_TAIL(bbout, copy); if (e == first) { + APR_BRIGADE_INSERT_TAIL(bbout, copy); if (off_first != start64) { rv = apr_bucket_split(copy, (apr_size_t)(start64 - off_first)); if (rv == APR_ENOTIMPL) {