]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h2: do not try to free an unallocated h2s->sd
authorWilly Tarreau <w@1wt.eu>
Mon, 20 Mar 2023 18:14:47 +0000 (19:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 Mar 2023 18:58:38 +0000 (19:58 +0100)
commitbcdc6cc15b86dc89de4ca55244a2152386f1d1f1
tree2866a1af95d6f1be56754d859a37160a52eb6b09
parenta45e7e81ec54fd0562d8ab4776b4c05584d6d180
BUG/MEDIUM: mux-h2: do not try to free an unallocated h2s->sd

In h2s_close() we may dereference h2s->sd to get the sc, but this
function may be called on allocation error paths, so we must check
for this specific condition. Let's also update the comment to make
it explicitly permitted.

This needs to be backported to 2.6.
src/mux_h2.c