quiche: fix verbose message when ip quadruple cannot be obtained.
No binary (build failed)
—
(log yok)
| @@ -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; | |