]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-quic: check sc_attach_mux return value
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 16 Jun 2025 08:46:05 +0000 (10:46 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 16 Jun 2025 16:11:09 +0000 (18:11 +0200)
commitfc1a17f169c01a1fea8f31abeaeef9a9f6c35f17
treebccb1bf93ff07df3b750dd4edebe83e01983ab72
parent54d74259e9860c7017903221f27525be89983a75
BUG/MINOR: mux-quic: check sc_attach_mux return value

On backend side, QUIC MUX needs to initialize the first local stream
during MUX init operation. This is necessary so that the first transfer
can then be performed.

sc_attach_mux() is used to attach the created QCS instance to its stream
data layer. However, return value was not checked, which may cause
issues on allocation error. This patch fixes it by returning an error on
MUX init operation and freeing the QCS instance in case of
sc_attach_mux() error.

This fixes coverity report from github issue #3007.

No need to backport.
src/mux_quic.c