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

use inet_pton() correctly!

parent 06d39bd3
No related branches found
No related tags found
No related merge requests found
......@@ -247,7 +247,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
}
}
if(1 == inet_pton(pf, addrbuf, sizeof(addrbuf))) {
if(1 == inet_pton(pf, hostname, addrbuf)) {
/* the given address is numerical only, prevent a reverse lookup */
ai_flags = AI_NUMERICHOST;
}
......
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