Skip to content

Commit

Permalink
socksetup: don't return on set_reuse_addr() error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Serge E. Hallyn authored and Junio C Hamano committed Apr 18, 2006
1 parent 24735cf commit 0032d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0032d54

Please sign in to comment.