BUG/MEDIUM: connection: Make sure we have a mux before calling detach().
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 13 Apr 2018 13:50:27 +0000 (15:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 13 Apr 2018 14:02:21 +0000 (16:02 +0200)
commit302f9ef0556b6795bda8882edf56611ee252fceb
tree8ce57e93baaf099f9d44af03df4f3ac557e0f0b7
parent48aa13f286dde83a88dd8459ee91ebee027c04a6
BUG/MEDIUM: connection: Make sure we have a mux before calling detach().

In some cases, we call cs_destroy() very early, so early the connection
doesn't yet have a mux, so we can't call mux->detach(). In this case,
just destroy the associated connection.

This should be backported to 1.8.
include/proto/connection.h