]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ssl: fix trace crash on BE conn release in io cb
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 6 Oct 2026 07:45:37 +0000 (09:45 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 6 Oct 2026 09:10:53 +0000 (11:10 +0200)
commit84381f9010d2b9340487b113b774b77ccaf72649
tree4180789c51a79503b2722e04eb88bab15c9ef8f5
parentf4d65a96d74e21595c0e745137f1eba35adef59c
BUG/MINOR: ssl: fix trace crash on BE conn release in io cb

Since 3.3, handling of idle connections in io handler for muxes/SSL has
been extended. On io completion, connection is not reinserted anymore in
the server list if it is in maintenance mode. Also, private connections
are need race protection as they may be purged : on completion, a
connection is reinserted in its parent session. This operation is
failible as it may require an allocation.

In SSL io tasklet, if a BE connection is not reinserted in its idle pool
for one of the two reasons described above, it is freed instead via MUX
destroy callback. This causes a crash if traces are activated as conn
pointer is not updated.

Fix this by ensuring conn pointer is set to NULL after destroy
invokation.

This must be backported up to 3.3.
src/ssl_sock.c