]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: Potential NULL deref in trace macro
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 10 Sep 2025 08:13:22 +0000 (10:13 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 11 Sep 2025 12:31:32 +0000 (14:31 +0200)
commita316342ec68be63c784b0efcd7f4b876dbdc432d
tree829b98dad7a0436a5d4c19d5ae105bdf891b448e
parente52e6f66acadbeac93330c74ef10445b145d00aa
BUG/MINOR: ssl: Potential NULL deref in trace macro

'ctx' might be NULL when we exit 'ssl_sock_handshake', it can't be
dereferenced without check in the trace macro.

This was found by Coverity andraised in GitHub #3113.
This patch should be backported up to 3.2.
src/ssl_sock.c