From: William Lallemand Date: Mon, 30 Jan 2012 16:27:17 +0000 (+0100) Subject: BUILD: fix declaration inside a scope block X-Git-Tag: v1.5-dev8~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9e9066e717c36c076730605f94c7d7f0a40e17d;p=thirdparty%2Fhaproxy.git BUILD: fix declaration inside a scope block --- diff --git a/src/proto_http.c b/src/proto_http.c index af53dda702..52efdf806e 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -3956,13 +3956,13 @@ int http_send_name_header(struct http_txn *txn, struct http_msg *msg, struct buf struct hdr_ctx ctx; - ctx.idx = 0; - char *hdr_name = be->server_id_hdr_name; int hdr_name_len = be->server_id_hdr_len; char *hdr_val; + ctx.idx = 0; + while (http_find_header2(hdr_name, hdr_name_len, msg->sol, &txn->hdr_idx, &ctx)) { /* remove any existing values from the header */ http_remove_header2(msg, buf, &txn->hdr_idx, &ctx);