THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

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>
tags/v1.4.0-rc1
Serge E. Hallyn Junio C Hamano 13 years ago
parent
commit
0032d548db
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon.c

+ 1
- 1
daemon.c View File

@@ -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) {


Loading…
Cancel
Save