]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tcpcheck: Report hexstring instead of binary one on check failure
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 30 Oct 2023 08:00:37 +0000 (09:00 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 31 Oct 2023 07:02:44 +0000 (08:02 +0100)
commitc72ab1cc6d8205152fb5accd929d4bd871871106
tree1a2ab7629bb4f2c260b239f844b7a60f72bdda63
parente7bae7a0b620485407a34018709e9a1ad865e7a5
BUG/MINOR: tcpcheck: Report hexstring instead of binary one on check failure

When an expect rule failed for a tcp-check, information about the expect
rule is dumped in the report. For a check on a binary string, a hexstring is
used in the configuration but the decoded string is dumped. It is an problem
because it can contain special characters. And it is not really handy
because there is no correspondance with the config.

So, now, the hexstring is dumped in the report. This way, we are sure there
is no special characters and it is easy to find it in the configuration.

This patch shoudl solve the issue #2326. It must be backported as far as
2.2.
src/check.c