]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: only destroy the h2s if h2s->cs is NULL.
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 25 Mar 2019 12:25:02 +0000 (13:25 +0100)
committerOlivier Houchard <cognet@ci0.org>
Mon, 25 Mar 2019 12:35:02 +0000 (13:35 +0100)
commit01d4cb5339689a9ffe80924cbb2704cbb646ea82
tree5c9eb8675e83344b527869ffa9400a0d43985c86
parent66af0b2b99e4b6c91d381a0cf4478f650c43c0e4
BUG/MEDIUM: h2: only destroy the h2s if h2s->cs is NULL.

In h2_deferred_shut(), only attempt to destroy the h2s if h2s->cs is NULL.
h2s->cs being non-NULL means it's still referenced by the stream interface,
so it may try to use it later, and that could lead to a crash.

This should be backported to 1.9.
src/mux_h2.c