From: Andre Noll Date: Mon, 30 Apr 2018 18:59:59 +0000 (+0200) Subject: server: Fix brown paper bag bug in generic_com_on(). X-Git-Tag: v0.6.2~10 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=e0545fd978a9583f9583b9bb35e5c25cb78c78f4 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. --- 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; }