Skip to content

Commit 0032d54

Browse files
Serge E. HallynJunio C Hamano
authored andcommitted
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>
1 parent 24735cf commit 0032d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daemon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ static int socksetup(int port, int **socklist_p)
535535

536536
if (set_reuse_addr(sockfd)) {
537537
close(sockfd);
538-
return 0; /* not fatal */
538+
continue;
539539
}
540540

541541
if (bind(sockfd, ai->ai_addr, ai->ai_addrlen) < 0) {

0 commit comments

Comments
 (0)