diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-03-17 07:40:15 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-03-17 07:40:15 +0000 |
commit | 8b80ac28778ae876880a95f263bbfa2b4456a28a (patch) | |
tree | 5482546f788b1c5878b21cb2c75484420d8fbeaa /lib/hostip6.c | |
parent | 233237740d0e2e1890797ffb9bfc6c4c7ba80676 (diff) | |
download | curl-8b80ac28778ae876880a95f263bbfa2b4456a28a.tar.gz |
use Curl_inet_pton(), not inet_pton().
Diffstat (limited to 'lib/hostip6.c')
-rw-r--r-- | lib/hostip6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostip6.c b/lib/hostip6.c index 4da05078f..ce58e64d0 100644 --- a/lib/hostip6.c +++ b/lib/hostip6.c @@ -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; } |