]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: ssl-sock: Remove useless tests on connection when resuming TLS session
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Dec 2025 07:16:57 +0000 (08:16 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Dec 2025 07:16:59 +0000 (08:16 +0100)
commita25394b6c83a820f1fa2df7673819c0e44a0d8cd
tree744a91fcd2453fbbfcf8fbf8e5b5faed49265b09
parentd6b1d5f6e9a0577e06fc17e9162db98b042e601b
CLEANUP: ssl-sock: Remove useless tests on connection when resuming TLS session

In ssl_sock_srv_try_reuse_sess(), the connection is always defined, to TCP
and QUIC connections. No reason to test it. Because it is not so obvious for
the QUIC part, a BUG_ON() could be added here. For now, just remove useless
tests.

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