Skip to content
Snippets Groups Projects
Commit 11ba367f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

getaddrinfo() failures now show port number too in informational output

parent 78473f71
No related branches found
No related tags found
No related merge requests found
......@@ -344,7 +344,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
snprintf(sbuf, sizeof(sbuf), "%d", port);
error = getaddrinfo(hostname, sbuf, &hints, &res);
if (error) {
infof(data, "getaddrinfo(3) failed for %s\n", hostname);
infof(data, "getaddrinfo(3) failed for %s:%d\n", hostname, port);
return NULL;
}
*bufp=(char *)res; /* make it point to the result struct */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment