BUG/MINOR: ssl-samples: Fix ssl_bc_* samples when called from a health-check
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Apr 2021 13:49:41 +0000 (15:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 21 Apr 2021 08:13:38 +0000 (10:13 +0200)
commit3b336d6e78a46cb6a995b8fcfb28946fc3000843
tree995115d2792aeb7f9c2c23fb75617d377f81848e
parent663c09ce05406727f84accb4c13d96e69de0bb1b
BUG/MINOR: ssl-samples: Fix ssl_bc_* samples when called from a health-check

For all ssl_bc_* sample fetches, the test on the keyword when called from a
health-check is inverted. We must be sure the 5th charater is a 'b' to
retrieve a connection.

This patch must be backported as far as 2.2.

(cherry picked from commit 4bef8d1d46ba596f1cc1595a63a01b6d9ae0f6cc)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/ssl_sample.c