mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
use Curl_inet_pton(), not inet_pton().
This commit is contained in:
parent
233237740d
commit
8b80ac2877
2 changed files with 3 additions and 3 deletions
|
|
@ -242,8 +242,8 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
|
|||
}
|
||||
}
|
||||
|
||||
if((1 == inet_pton(AF_INET, hostname, addrbuf)) ||
|
||||
(1 == inet_pton(AF_INET6, hostname, addrbuf))) {
|
||||
if((1 == Curl_inet_pton(AF_INET, hostname, addrbuf)) ||
|
||||
(1 == Curl_inet_pton(AF_INET6, hostname, addrbuf))) {
|
||||
/* the given address is numerical only, prevent a reverse lookup */
|
||||
ai_flags = AI_NUMERICHOST;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue