mirror of
https://github.com/curl/curl.git
synced 2026-07-30 11:58:53 +03:00
Use 'Curl_inet_pton()' instead of 'inet_pton()'.
This commit is contained in:
parent
1c68e79091
commit
56f852a64f
1 changed files with 2 additions and 1 deletions
|
|
@ -73,6 +73,7 @@
|
|||
#include "strerror.h"
|
||||
#include "url.h"
|
||||
#include "multiif.h"
|
||||
#include "inet_pton.h"
|
||||
#include "connect.h"
|
||||
#include "select.h"
|
||||
|
||||
|
|
@ -389,7 +390,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
|
|||
}
|
||||
|
||||
#ifdef ENABLE_IPV6 /* CURLRES_IPV6 */
|
||||
if (inet_pton (AF_INET6, hostname, &in6) > 0) {
|
||||
if (Curl_inet_pton (AF_INET6, hostname, &in6) > 0) {
|
||||
/* This must be an IPv6 address literal. */
|
||||
return Curl_ip2addr6(&in6, hostname, port);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue