BUG/MEDIUM: connection: don't forget to always delete the list's head
authorWilly Tarreau <w@1wt.eu>
Tue, 21 Aug 2018 16:33:20 +0000 (18:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Aug 2018 16:33:20 +0000 (18:33 +0200)
commit1b13bfd646e00ccfafd4727febb2589366733064
tree331204bbe3d8a5b0e7351070c1653c65a608b177
parentdeca26c452cdc3ab2a4446eaadd5606192306764
BUG/MEDIUM: connection: don't forget to always delete the list's head

During a test it happened that a connection was deleted before the
stream it's attached to, resulting in a crash related to the fix
18a85fe ("BUG/MEDIUM: streams: Don't forget to remove the si from
the wait list.") during the LIST_DEL(). Make sure to always delete
the list's head in this case so that other elements can safely
detach later.

This is purely 1.9, no backport is needed.
include/proto/connection.h