]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix a buglett in backport 230718; get our selection of brigades correct.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 8 Aug 2005 01:03:09 +0000 (01:03 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 8 Aug 2005 01:03:09 +0000 (01:03 +0000)
  (tis what happens when our code is this far out-of-sync with trunk, sorry.)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/proxy-reqbody-2.0.x@230720 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_http.c

index 6c2a91f62915fd7f35b27eb91589852bd5eb418d..0457cb87a39ba574d1e9de0d01157e90cce067dd 100644 (file)
@@ -544,14 +544,14 @@ static apr_status_t stream_reqbody_chunked(apr_pool_t *p,
             AP_DEBUG_ASSERT(APR_BUCKET_IS_EOS(e));
             apr_bucket_delete(e);
         }
+        b = input_brigade;
     }
 
     e = apr_bucket_immortal_create(ASCII_ZERO ASCII_CRLF
                                    /* <trailers> */
                                    ASCII_CRLF,
                                    5, bucket_alloc);
-    APR_BRIGADE_INSERT_TAIL(input_brigade, e);
-    b = input_brigade;
+    APR_BRIGADE_INSERT_TAIL(b, e);
     
     status = pass_brigade(bucket_alloc, r, p_conn, origin, b, 1);
     return status;