mirror of
https://github.com/curl/curl.git
synced 2026-07-08 02:27:16 +03:00
quiche: fix verbose message when ip quadruple cannot be obtained.
Reported in Joshua's sarif data Closes #18726
This commit is contained in:
parent
ee2dd2d6cb
commit
36eb26381c
1 changed files with 5 additions and 3 deletions
|
|
@ -1432,9 +1432,11 @@ out:
|
|||
if(result && result != CURLE_AGAIN) {
|
||||
struct ip_quadruple ip;
|
||||
|
||||
Curl_cf_socket_peek(cf->next, data, NULL, NULL, &ip);
|
||||
infof(data, "connect to %s port %u failed: %s",
|
||||
ip.remote_ip, ip.remote_port, curl_easy_strerror(result));
|
||||
if(!Curl_cf_socket_peek(cf->next, data, NULL, NULL, &ip))
|
||||
infof(data, "connect to %s port %u failed: %s",
|
||||
ip.remote_ip, ip.remote_port, curl_easy_strerror(result));
|
||||
else
|
||||
infof(data, "connect failed: %s", curl_easy_strerror(result));
|
||||
}
|
||||
#endif
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue