From e0545fd978a9583f9583b9bb35e5c25cb78c78f4 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 30 Apr 2018 20:59:59 +0200 Subject: [PATCH] server: Fix brown paper bag bug in generic_com_on(). Due to this bug an the wrong integer is stored in ->listen_fd, resulting in errors of the form Apr 30 20:56:15 (4) (31884) accept_sender_client: Socket operation on non-socket Fixes: ac9f8fc0b4a20 (send_common: Combine generic_com_on() and open_sender()) from one month ago. --- send_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/send_common.c b/send_common.c index 5a9ddf64..16820a53 100644 --- a/send_common.c +++ b/send_common.c @@ -236,7 +236,7 @@ void generic_com_on(struct sender_status *ss, unsigned protocol) return; } add_close_on_fork_list(fd); - ss->listen_fd = ret; + ss->listen_fd = fd; return; } -- 2.39.5