socksetup: don't return on set_reuse_addr() error
authorSerge E. Hallyn <serue@us.ibm.com>
Tue, 18 Apr 2006 13:11:06 +0000 (08:11 -0500)
committerJunio C Hamano <junkio@cox.net>
Tue, 18 Apr 2006 21:39:28 +0000 (14:39 -0700)
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 <serue@us.ibm.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
daemon.c

index a1ccda3..776749e 100644 (file)
--- 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) {