net: Let makesock() continue on setsockopt() failure.
[paraslash.git] / net.c
diff --git a/net.c b/net.c
index b7806a1..822f70d 100644 (file)
--- a/net.c
+++ b/net.c
@@ -443,11 +443,8 @@ static int makesock_addrinfo(unsigned l4type, bool passive, struct addrinfo *ai,
                 */
                if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &on,
                                sizeof(on)) == -1) {
-                       ret = -ERRNO_TO_PARA_ERROR(errno);
                        close(sockfd);
-                       PARA_ERROR_LOG("can not set SO_REUSEADDR: %s\n",
-                               para_strerror(-ret));
-                       return ret;
+                       continue;
                }
                if (bind(sockfd, ai->ai_addr, ai->ai_addrlen) < 0) {
                        close(sockfd);