]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: Fix potential NULL deref in trace callback
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 10 Sep 2025 08:31:08 +0000 (10:31 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 11 Sep 2025 12:31:32 +0000 (14:31 +0200)
commite0844a305c623ac672f9a30e9d62dc3a0f7df61b
treed85b70f12060d62bec70245240ceb823faa78023
parenta316342ec68be63c784b0efcd7f4b876dbdc432d
BUG/MINOR: ssl: Fix potential NULL deref in trace callback

'conn' might be NULL in the trace callback so the calls to
conn_err_code_str must be covered by a proper check.

This issue was found by Coverity and raised in GitHub #3112.
The patch must be backported to 3.2.
src/ssl_trace.c