BUG/MINOR: tcpcheck: Don't forget to reset tcp-check flags on new kind of check
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 25 Nov 2020 15:43:12 +0000 (16:43 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 27 Nov 2020 14:05:44 +0000 (15:05 +0100)
commitb9492cf20a3e244ad25bf47ab403473e0354f281
tree47639f43d8ac5a523ec4c58b3cf9476de51bfa35
parentf9f0f94f6a5c281d0f02056951fac098585537a5
BUG/MINOR: tcpcheck: Don't forget to reset tcp-check flags on new kind of check

When a new kind of check is found during the parsing of a proxy section (via
an option directive), we must reset tcpcheck flags for this proxy. It is
mandatory to not inherit some flags from a previously declared check (for
instance in the default section).

This patch must be backported as far as 2.2.

(cherry picked from commit 1faf18ae3976cddfb17afa95ea447205330c821e)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
src/check.c