MINOR: connection: ensure conn_ctrl_close() also resets the fd

The connection's fd was reset to DEAD_FD_MAGIC on conn_force_close()
but not on conn_full_close(), which is a bit strange. Let's do it on
both.
This commit is contained in:
Willy Tarreau 2017-10-05 17:43:39 +02:00
parent f9ce57e86c
commit 6a0a80adaf

View File

@ -125,6 +125,7 @@ static inline void conn_ctrl_close(struct connection *conn)
{ {
if ((conn->flags & (CO_FL_XPRT_READY|CO_FL_CTRL_READY)) == CO_FL_CTRL_READY) { if ((conn->flags & (CO_FL_XPRT_READY|CO_FL_CTRL_READY)) == CO_FL_CTRL_READY) {
fd_delete(conn->handle.fd); fd_delete(conn->handle.fd);
conn->handle.fd = DEAD_FD_MAGIC;
conn->flags &= ~CO_FL_CTRL_READY; conn->flags &= ~CO_FL_CTRL_READY;
} }
} }