]> granicus.if.org Git - apache/commitdiff
core: Make sure we allow unconstrained bodies from a proxy.
authorGraham Leggett <minfrin@apache.org>
Wed, 22 May 2013 15:49:57 +0000 (15:49 +0000)
committerGraham Leggett <minfrin@apache.org>
Wed, 22 May 2013 15:49:57 +0000 (15:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1485257 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_filters.c

index 13a1d7fafe397eb35b87dbe71dd6752127107e3c..5c761a93c28ac801e7598937e0714e28c774cd65 100644 (file)
@@ -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) {