]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: prevent conn leak in case of xprt_qmux init failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 29 Apr 2026 08:22:14 +0000 (10:22 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 20 May 2026 09:13:56 +0000 (11:13 +0200)
commitf521581922b0ca4b4f322b3fe1e337324063b757
tree6c3c4467867940d839539f3c8a6e1b0492843b32
parentde3f245df032073dec134f5d0f597d73a7b2575d
BUG/MINOR: prevent conn leak in case of xprt_qmux init failure

In case of XPRT_QMUX init failure on the frontend side, the connection
must immediately be released. This is not the case on the backend side
as a stream can supervize the connection lifetime.

This patch performs the connection free via conn_complete_session(). As
conn is flagged with CO_FL_ERROR, this will automatically fail and
invoke session_kill_embryonic(), which ensures the session and its
connection are both freed as wanted in this case.

No need to backport.
src/ssl_sock.c