]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: Make sure we set send_list to NULL in h2_detach().
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 9 May 2019 11:24:08 +0000 (13:24 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 9 May 2019 11:26:48 +0000 (13:26 +0200)
commitd9986ed51eb519c167488d06886e6aab2c5d363d
tree4af28dc322431efae4db75e841316dfa5faa8c90
parent92e38e254b2cef4e5cde4fbce91207a88f0a4610
BUG/MEDIUM: h2: Make sure we set send_list to NULL in h2_detach().

In h2_detach(), if we still have a send_wait pointer, because we woke the
tasklet up, but it hasn't ran yet, explicitely set send_wait to NULL after
we removed the tasklet from the task list.
Failure to do so may lead to crashes if the h2s isn't immediately destroyed,
because we considered there were still something to send.

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