]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: crash in ssl_sock_io_cb() with SSL traces and idle connections
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 2 Jul 2025 14:05:20 +0000 (16:05 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 2 Jul 2025 14:14:19 +0000 (16:14 +0200)
commit720efd0409bd9d0a416af9df8786937ebff488ae
treeb53f57324b092fe4ade05a482feec5e208918a34
parente34a0a50ae1a1da031fb9ef82c1941f6ece0d24f
BUG/MINOR: ssl: crash in ssl_sock_io_cb() with SSL traces and idle connections

TRACE_ENTER is crashing in ssl_sock_io_cb() in case a connection idle is
being stolen. Indeed the function could be called with a NULL context
and dereferencing it will crash.

This patch fixes the issue by initializing ctx only once it is usable,
and moving TRACE_ENTER after the initialization.

This must be backported to 3.2.
src/ssl_sock.c