BUG/MEDIUM: proto_htx: Fix functions applying regex filters on HTX messages
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Feb 2019 14:36:05 +0000 (15:36 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Feb 2019 14:45:02 +0000 (15:45 +0100)
commit02e771a9e0543e8328c2c156d7e8a3a3f8e22a5f
tree8f9a682c6134001304384be4a781dab700731830
parent7402776c52292619c55355a402c35aab3b3b7f7e
BUG/MEDIUM: proto_htx: Fix functions applying regex filters on HTX messages

The HTX functions htx_apply_filter_to_req_headers() and
htx_apply_filter_to_resp_headers() contain 2 bugs. The first one is about the
matching on each header. The chunk 'hdr' used to format a full header line was
never reset. The second bug appears when we try to replace or remove a
header. The variable ctx was not fully initialized, leading to sefaults.

This patch must be backported to 1.9.
src/proto_htx.c