From: Christopher Faulet Date: Tue, 27 Nov 2018 09:46:09 +0000 (+0100) Subject: BUG/MINOR: mux-h1: Fix processing of "Connection: " header on outgoing messages X-Git-Tag: v1.9-dev9~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5999b865008633fe4314140ed4c5bab017203383;p=thirdparty%2Fhaproxy.git BUG/MINOR: mux-h1: Fix processing of "Connection: " header on outgoing messages in h1_process_output(), before formatting the headers, we need to find and check the "Connection: " header to update the connection mode. But, the context used to do so was not correctly initialized. We must explicitly set ctx.value to NULL to be sure to rescan the current header. --- diff --git a/src/mux_h1.c b/src/mux_h1.c index bade571a7d..1ceac128aa 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -1219,6 +1219,7 @@ static size_t h1_process_output(struct h1c *h1c, struct buffer *buf, size_t coun * right one. */ ctx.blk = blk; + ctx.value = ist(NULL); if (http_find_header(chn_htx, n, &ctx, 1)) goto process_hdr; h1_process_conn_mode(h1s, h1m, NULL, &v);