BUG/MINOR: mux-h1: Fix trace message in h1_detroy() to not relay on connection
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Apr 2025 12:32:16 +0000 (14:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 May 2025 15:01:43 +0000 (17:01 +0200)
commitcad223e19946a6d02261a259c2be5c20096ef2cd
tree241e1d5cfb5b59241a25a3027338ff3a5b19bdf8
parent3b774ac747d54f107b25ed1c6e9e16720e78d421
BUG/MINOR: mux-h1: Fix trace message in h1_detroy() to not relay on connection

h1_destroy() may be called to release a H1C after a multiplexer upgrade. In
that case, the connection is no longer attached to the H1C. It must not be
used in the h1 trace message because the connection context is no longer a H1C.

Because of this bug, when a H1>H2 upgrade is performed, a crash may be
experienced if the H1 traces are enabled.

This patch must be backport to all stable versions.

(cherry picked from commit 7dc4e94830ef8fe9b0ffc2901d63b9f3183ed12c)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/mux_h1.c