mirror of
https://github.com/curl/curl.git
synced 2026-06-14 22:55:42 +03:00
cf-socket: store errno from do_connect in ctx->error
This fixes a misleading log in verbose mode when ipv6 connectivity isn't available, presumably also in other cases: ``` * Immediate connect fail for 2a00:1450:4028:806::200e: Network is unreachable * connect to 2a00:1450:4028:806::200e port 443 from :: port 0 failed: Success ``` Closes #21914
This commit is contained in:
parent
e66b81a532
commit
feb609f28b
1 changed files with 1 additions and 0 deletions
|
|
@ -1319,6 +1319,7 @@ static CURLcode cf_tcp_connect(struct Curl_cfilter *cf,
|
|||
CURL_TRC_CF(data, cf, "local address %s port %d...",
|
||||
ctx->ip.local_ip, ctx->ip.local_port);
|
||||
if(rc == -1) {
|
||||
ctx->error = error;
|
||||
result = socket_connect_result(data, ctx->ip.remote_ip, error);
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue