diff options
-rw-r--r-- | lib/connect.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/connect.c b/lib/connect.c index c51c85b73..5e631baa9 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -1126,10 +1126,7 @@ static CURLcode singleipconnect(struct connectdata *conn, result = Curl_socket(conn, ai, &addr, &sockfd); if(result) - /* Failed to create the socket, but still return OK since we signal the - lack of socket as well. This allows the parent function to keep looping - over alternative addresses/socket families etc. */ - return CURLE_OK; + return result; /* store remote address and port used in this connection attempt */ if(!Curl_addr2string((struct sockaddr*)&addr.sa_addr, addr.addrlen, |