]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ssl: fix trace crash on FE conn release in io cb
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 5 Oct 2026 15:42:18 +0000 (17:42 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 6 Oct 2026 09:08:10 +0000 (11:08 +0200)
commitf4d65a96d74e21595c0e745137f1eba35adef59c
tree17fc6c574a1aaaf765adeb2ede5f4d4d94535423
parenta8dc3ee68fe14dfb4b91d99ad92aceb3ae38a253
BUG/MINOR: ssl: fix trace crash on FE conn release in io cb

The following patch has added an output parameter in conn_create_mux()
to report if the connection has been destroyed. This can happen for
frontend connection only.

In case the connection is destroyed, tasklet is set to NULL as expected
to avoid returning an invalid pointer. However, conn pointer is left
unchanged. This leads to a crash if traces are activated. The proper fix
is to also set conn to NULL.

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