]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: muxes: Make sure we unsubcribed when destroying mux ctx.
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 15 Apr 2019 15:51:16 +0000 (17:51 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 15 Apr 2019 17:27:57 +0000 (19:27 +0200)
commit0e0793715cafe07dab722b2d28c4825eab84f5fc
tree50edf52385c1c562dcba5c42e6217cc863b07dab
parente61828449c6e8c9594befbe1839956ea612c8331
BUG/MEDIUM: muxes: Make sure we unsubcribed when destroying mux ctx.

In the h1 and h2 muxes, make sure we unsubscribed before destroying the
mux context.
Failing to do so will lead in a segfault later, as the connection will
attempt to dereference its conn->send_wait or conn->recv_wait, which pointed
to the now-free'd mux context.

This was introduced by commit 39a96ee16eeec51774f9f52a783cf624a0de4ccb, so
should only be backported if that commit gets backported.
src/mux_h1.c
src/mux_h2.c