]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: Follow the same logic in h2_deferred_shut than in h2_snd_buf.
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 25 Mar 2019 13:08:01 +0000 (14:08 +0100)
committerOlivier Houchard <cognet@ci0.org>
Mon, 25 Mar 2019 13:34:26 +0000 (14:34 +0100)
commitafc7cb85c47f89a95554d20fd4a9e11a28b8b4b9
treed1fee4d95c4143fe93c9ca19d851d3a61cfcc6a2
parentfd1e96d2fb10eb7d1e11ca143ac0e7eac55c4666
BUG/MEDIUM: h2: Follow the same logic in h2_deferred_shut than in h2_snd_buf.

In h2_deferred_shut(), don't just set h2s->send_wait to NULL, instead, use
the same logic as in h2_snd_buf() and only do so if we successfully sent data
(or if we don't want to send them anymore). Setting it to NULL can lead to
crashes.

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