]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h2: fix crash when checking for reverse connection after error
authorWilly Tarreau <w@1wt.eu>
Sat, 26 Aug 2023 15:05:19 +0000 (17:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 26 Aug 2023 15:05:19 +0000 (17:05 +0200)
commita7b9baa2ccf513219b2c4ba3f3bbbde14777d617
treebd0b8a5fb02e3b804904160798089444cbe2aca1
parent518349f08a35f72063d1bb47805d8ea3d1be7b9b
BUG/MEDIUM: mux-h2: fix crash when checking for reverse connection after error

If the connection is closed in h2_release(), which is indicated by ret<0, we
must not dereference conn anymore. This was introduced in 2.9-dev4 by commit
5053e8914 ("MEDIUM: h2: prevent stream opening before connection reverse
completed") and detected after a few hours of runtime thanks to running with
pool integrity checks and caller enabled. No backport is needed.
src/mux_h2.c