mirror of
https://github.com/curl/curl.git
synced 2026-07-23 00:37:23 +03:00
hostip: fix infof() output for non-ipv6 builds using IPv6 address
Pointed out by ZeroPath Closes #19184
This commit is contained in:
parent
7d5d0645e5
commit
7295546447
1 changed files with 3 additions and 3 deletions
|
|
@ -1352,9 +1352,9 @@ CURLcode Curl_loadhostpairs(struct Curl_easy *data)
|
|||
}
|
||||
}
|
||||
#ifndef USE_IPV6
|
||||
if(memchr(target.str, ':', target.len)) {
|
||||
infof(data, "Ignoring resolve address '%s', missing IPv6 support.",
|
||||
address);
|
||||
if(memchr(curlx_str(&target), ':', curlx_strlen(&target))) {
|
||||
infof(data, "Ignoring resolve address '%.*s', missing IPv6 support.",
|
||||
(int)curlx_strlen(&target), curlx_str(&target));
|
||||
if(curlx_str_single(&host, ','))
|
||||
goto err;
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue