diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-03-12 23:28:10 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-03-12 23:28:10 +0100 |
commit | cdd099cac8cba0e1f9ed588df831c9d3152fe56f (patch) | |
tree | 195dc2f67c63c180765f376c9bc3b838c786ebb6 | |
parent | 2430ef4c6c3c7ee9b8efc0e6b9d7f84e799c286c (diff) | |
download | curl-bagder/cleanup-happy-eyeballs.tar.gz |
fixup return error on failed socket-creationbagder/cleanup-happy-eyeballs
-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, |