diff --git a/include/proto/server.h b/include/proto/server.h index 5a2fcc9192..0844e8aeb8 100644 --- a/include/proto/server.h +++ b/include/proto/server.h @@ -261,7 +261,7 @@ static inline int srv_add_to_idle_list(struct server *srv, struct connection *co _HA_ATOMIC_SUB(&srv->curr_idle_conns, 1); return 0; } - LIST_DEL(&conn->list); + LIST_DEL_INIT(&conn->list); MT_LIST_ADDQ(&srv->idle_orphan_conns[tid], (struct mt_list *)&conn->list); srv->curr_idle_thr[tid]++;