]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: connections: Close the connection before freeing it.
authorOlivier Houchard <cognet@ci0.org>
Wed, 19 Dec 2018 22:21:46 +0000 (23:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Dec 2018 05:03:14 +0000 (06:03 +0100)
commit8ab8a6eee5297c440e0a0dd1edec90a2def515f5
treebb0dc61d8b23a32dca606b9a5cf97a89ce852146
parent822305067bdc13d088494915184864e36878aa16
BUG/MAJOR: connections: Close the connection before freeing it.

In si_release_endpoint(), if the end point is a connection, because we don't
know which mux to use it, make sure we close the connection before freeing it,
or else, we'd have a fd left for polling, which would point to a now free'd
connection.

This should be backported to 1.9.
include/proto/stream_interface.h