From ec9516a6dc6df12299f94cea3c20b8333cac569f Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Thu, 8 Mar 2018 18:25:49 +0100 Subject: [PATCH] BUG/MINOR: unix: Don't mess up when removing the socket from the xfer_sock_list. When removing the socket from the xfer_sock_list, we want to set next->prev to prev, not to next->prev, which is useless. This should be backported to 1.8. --- src/proto_uxst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto_uxst.c b/src/proto_uxst.c index 3ab637f20..0f717385e 100644 --- a/src/proto_uxst.c +++ b/src/proto_uxst.c @@ -157,7 +157,7 @@ static int uxst_find_compatible_fd(struct listener *l) if (xfer_sock->prev) xfer_sock->prev->next = xfer_sock->next; if (xfer_sock->next) - xfer_sock->next->prev = xfer_sock->next->prev; + xfer_sock->next->prev = xfer_sock->prev; free(xfer_sock); } return ret;