mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
use inet_pton() correctly!
This commit is contained in:
parent
06d39bd303
commit
93b61bf0d3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user