]> granicus.if.org Git - apache/commitdiff
Be more consistent when we alocate this brigade.
authorChristophe Jaillet <jailletc36@apache.org>
Thu, 18 Aug 2016 21:10:37 +0000 (21:10 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Thu, 18 Aug 2016 21:10:37 +0000 (21:10 +0000)
This should save a few bytes in case of early exit and is, IMHO, cleaner.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756852 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_connect.c

index 7aaab2cae158f043e154f788c0ae7af571dcd0df..c79c6550638a6352cd03f9198559976b29d88e00 100644 (file)
@@ -158,7 +158,7 @@ static int proxy_connect_handler(request_rec *r, proxy_worker *worker,
     conn_rec *backconn;
     int done = 0;
 
-    apr_bucket_brigade *bb_front = apr_brigade_create(p, c->bucket_alloc);
+    apr_bucket_brigade *bb_front;
     apr_bucket_brigade *bb_back;
     apr_status_t rv;
     apr_size_t nbytes;
@@ -315,6 +315,7 @@ static int proxy_connect_handler(request_rec *r, proxy_worker *worker,
                    backconn->local_addr->port));
 
 
+    bb_front = apr_brigade_create(p, c->bucket_alloc);
     bb_back = apr_brigade_create(p, backconn->bucket_alloc);
 
     /* If we are connecting through a remote proxy, we need to pass