From 7d09fbe4ab7f080a8f8f5dcef7e0f3edf5e26019 Mon Sep 17 00:00:00 2001 From: "Serge E. Hallyn" Date: Tue, 18 Apr 2006 08:11:06 -0500 Subject: [PATCH] socksetup: don't return on set_reuse_addr() error The set_reuse_addr() error case was the only error case in socklist() where we returned rather than continued. Not sure why. Either we must free the socklist, or continue. This patch continues on error. Signed-off-by: Serge E. Hallyn Signed-off-by: Junio C Hamano (cherry picked from 0032d548db56eac9ea09b4ba05843365f6325b85 commit) --- daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.c b/daemon.c index a1ccda30e..776749e34 100644 --- a/daemon.c +++ b/daemon.c @@ -535,7 +535,7 @@ static int socksetup(int port, int **socklist_p) if (set_reuse_addr(sockfd)) { close(sockfd); - return 0; /* not fatal */ + continue; } if (bind(sockfd, ai->ai_addr, ai->ai_addrlen) < 0) { -- 2.26.2