summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-03-12 23:28:10 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-03-12 23:28:10 +0100
commitcdd099cac8cba0e1f9ed588df831c9d3152fe56f (patch)
tree195dc2f67c63c180765f376c9bc3b838c786ebb6
parent2430ef4c6c3c7ee9b8efc0e6b9d7f84e799c286c (diff)
downloadcurl-bagder/cleanup-happy-eyeballs.tar.gz
fixup return error on failed socket-creationbagder/cleanup-happy-eyeballs
-rw-r--r--lib/connect.c5
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,