From 9bf56b5ddb29bb625bf85e4020ec018a055c64d8 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Thu, 25 Aug 2011 21:43:32 +0000 Subject: [PATCH] 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 --- modules/http/byterange_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.3