BUG/MINOR: tcpcheck: Fix numbering of implicit HTTP send/expect rules
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 25 Jun 2021 09:37:45 +0000 (11:37 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 25 Jun 2021 12:03:45 +0000 (14:03 +0200)
commitfa5880bd539b9069fd1b139d32cffae2bb3c2c3c
treeec5423a5e9fa90a17e03d3baac7d0ea654308bfb
parent953771b0e30d02ed22369f9498d70bd02e9a470a
BUG/MINOR: tcpcheck: Fix numbering of implicit HTTP send/expect rules

The index of the failing rule is reported in the health-check log message. The
rules index is also used in the check traces. But for implicit HTTP send/expect
rules, the index is wrong. It must be incremented by one compared to the
preceding rule.

This patch may be backported as far as 2.2.
src/tcpcheck.c