Skip to content

Commit 60c3136

Browse files
author
Arturo Bernal
committed
Declaration should be at the top of the function
1 parent 707299d commit 60c3136

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/proxy/mod_proxy_fcgi.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,9 @@ static apr_status_t dispatch(proxy_conn_rec *conn, proxy_dir_conf *conf,
681681
char stack_iobuf[AP_IOBUFSIZE];
682682
apr_size_t iobuf_size = AP_IOBUFSIZE;
683683
char *iobuf = stack_iobuf;
684+
/* Create our dynamic header buffer for large headers */
685+
ap_varbuf *header_vb = NULL;
686+
ap_varbuf_make(&header_vb, r->pool, 1024);
684687

685688
*err = NULL;
686689
if (conn->worker->s->io_buffer_size_set) {
@@ -707,10 +710,6 @@ static apr_status_t dispatch(proxy_conn_rec *conn, proxy_dir_conf *conf,
707710
ib = apr_brigade_create(r->pool, c->bucket_alloc);
708711
ob = apr_brigade_create(r->pool, c->bucket_alloc);
709712

710-
/* Create our dynamic header buffer for large headers */
711-
ap_varbuf *header_vb = NULL;
712-
ap_varbuf_make(&header_vb, r->pool, 1024);
713-
714713
while (! done) {
715714
apr_interval_time_t timeout;
716715
apr_size_t len;

0 commit comments

Comments
 (0)