diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-08-20 09:11:52 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-08-20 09:11:52 +0000 |
commit | 93b61bf0d392ca1e6f923d6fc252cb9778ab5ce2 (patch) | |
tree | 00d387292e49dad3d021fde1ae2a76bdc431fdad /lib | |
parent | 06d39bd303dd6fd408575f9726e85a46cc52cf91 (diff) |
use inet_pton() correctly!
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hostip6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip6.c b/lib/hostip6.c index 596a5733d..d01c4476e 100644 --- a/lib/hostip6.c +++ b/lib/hostip6.c @@ -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; } |