mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
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:
parent
f9ce57e86c
commit
6a0a80adaf
@ -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) {
|
||||
fd_delete(conn->handle.fd);
|
||||
conn->handle.fd = DEAD_FD_MAGIC;
|
||||
conn->flags &= ~CO_FL_CTRL_READY;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user