← Commit list

7295546447

Daniel Stenberg
Daniel Stenberg
2025-10-22
SUCCESS Duration: 149s

Subject

hostip: fix infof() output for non-ipv6 builds using IPv6 address

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/hostip.c+3 -3
@@ -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;