]> git.kaiwu.me - haproxy.git/commit
CLEANUP: tcpcheck: Remove useless test on the xprt used for healthchecks
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Dec 2025 07:01:20 +0000 (08:01 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Dec 2025 07:01:21 +0000 (08:01 +0100)
commitd6b1d5f6e9a0577e06fc17e9162db98b042e601b
tree4aa9e43ebf4d7e9d007fb9c28d9c3fe8e5a6d7a3
parent5c5914c32edeeb2bc91e9ea61124b3089886239c
CLEANUP: tcpcheck: Remove useless test on the xprt used for healthchecks

The xprt used to perform a healthcheck is always defined and cannot be NULL.
So there is no reason to test it. It could lead to wrong assumptions later
in the code.

This patch should fix a Coverity report from #3213.
src/tcpcheck.c