]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-quic: fix sedesc leak on BE side
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 20 Nov 2025 17:14:55 +0000 (18:14 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 21 Nov 2025 09:34:08 +0000 (10:34 +0100)
commit4fb89086059d50bde409feb2920ae848da74a8a2
tree5bb26dd1628046a501aab5ee1180a42dcf78bb58
parent9f16c64a8c5e279afdc900c1123e33670e49dda4
BUG/MINOR: mux-quic: fix sedesc leak on BE side

On backend side, streams are instantiated prior to their QCS MUX
counterpart. Thus, QCS can reuse the stream-endpoint already allocated
with the streams, either on qmux_init() or attach operation.

However, a stream-endpoint is also always allocated in every qcs_new()
invokation. For backend QCS, it is thus overwritten on
qmux_init()/attach operation. This causes a memleak.

Fix this by restricting allocation of stream-endpoint only for frontend
connection.

This does not need to be backported.
src/mux_quic.c