Serge E. Hallyn  committed 7d09fbe

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 <>
Signed-off-by: Junio C Hamano <>
(cherry picked from 0032d548db56eac9ea09b4ba05843365f6325b85 commit)

  • Participants
  • Parent commits 1ab661d
  • Tags v1.3.1

Comments (0)

Files changed (1)

 		if (set_reuse_addr(sockfd)) {
-			return 0;	/* not fatal */
+			continue;
 		if (bind(sockfd, ai->ai_addr, ai->ai_addrlen) < 0) {