From: Graham Leggett Date: Wed, 22 May 2013 15:49:57 +0000 (+0000) Subject: core: Make sure we allow unconstrained bodies from a proxy. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a33029086db578a746b50ddf441b5f535d824fd;p=thirdparty%2Fapache%2Fhttpd.git core: Make sure we allow unconstrained bodies from a proxy. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1485257 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c index 13a1d7fafe3..5c761a93c28 100644 --- a/modules/http/http_filters.c +++ b/modules/http/http_filters.c @@ -395,7 +395,7 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b, case BODY_CHUNK_DATA: { /* Ensure that the caller can not go over our boundary point. */ - if (ctx->remaining < readbytes) { + if (ctx->state != BODY_NONE && ctx->remaining < readbytes) { readbytes = ctx->remaining; } if (readbytes > 0) {