@matheusbsbs / matheus-bagliano / commits / 7d09fbe4ab
Fork 0

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 <serue@us.ibm.com> Signed-off-by: Junio C Hamano <junkio@cox.net> (cherry picked from 0032d548db56eac9ea09b4ba05843365f6325b85 commit)

Serge E. Hallyn committed Apr 18, 2006 at 08:11 UTC 7d09fbe4ab7f080a8f8f5dcef7e0f3edf5e26019
1 file changed +1 -1
daemon.c
+1 -1
@@ -535,7 +535,7 @@ static int socksetup(int port, int **socklist_p)
535
536 if (set_reuse_addr(sockfd)) {
537 close(sockfd);
538 - return 0; /* not fatal */
538 + continue;
539 }
540
541 if (bind(sockfd, ai->ai_addr, ai->ai_addrlen) < 0) {