Loading lib/asyn-thread.c +14 −13 Original line number Original line Diff line number Diff line Loading @@ -594,28 +594,29 @@ Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn, int *waitp) int *waitp) { { struct addrinfo hints; struct addrinfo hints; struct in_addr in; Curl_addrinfo *res; Curl_addrinfo *res; int error; int error; char sbuf[12]; char sbuf[12]; int pf = PF_INET; int pf = PF_INET; #ifdef CURLRES_IPV6 struct in6_addr in6; #endif /* CURLRES_IPV6 */ *waitp = 0; /* default to synchronous response */ *waitp = 0; /* default to synchronous response */ #ifndef USE_RESOLVE_ON_IPS #ifndef USE_RESOLVE_ON_IPS { struct in_addr in; /* First check if this is an IPv4 address string */ /* First check if this is an IPv4 address string */ if(Curl_inet_pton(AF_INET, hostname, &in) > 0) if(Curl_inet_pton(AF_INET, hostname, &in) > 0) /* This is a dotted IP address 123.123.123.123-style */ /* This is a dotted IP address 123.123.123.123-style */ return Curl_ip2addr(AF_INET, &in, hostname, port); return Curl_ip2addr(AF_INET, &in, hostname, port); } #ifdef CURLRES_IPV6 #ifdef CURLRES_IPV6 { struct in6_addr in6; /* check if this is an IPv6 address string */ /* check if this is an IPv6 address string */ if(Curl_inet_pton(AF_INET6, hostname, &in6) > 0) if(Curl_inet_pton(AF_INET6, hostname, &in6) > 0) /* This is an IPv6 address literal */ /* This is an IPv6 address literal */ return Curl_ip2addr(AF_INET6, &in6, hostname, port); return Curl_ip2addr(AF_INET6, &in6, hostname, port); } #endif /* CURLRES_IPV6 */ #endif /* CURLRES_IPV6 */ #endif /* !USE_RESOLVE_ON_IPS */ #endif /* !USE_RESOLVE_ON_IPS */ Loading Loading
lib/asyn-thread.c +14 −13 Original line number Original line Diff line number Diff line Loading @@ -594,28 +594,29 @@ Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn, int *waitp) int *waitp) { { struct addrinfo hints; struct addrinfo hints; struct in_addr in; Curl_addrinfo *res; Curl_addrinfo *res; int error; int error; char sbuf[12]; char sbuf[12]; int pf = PF_INET; int pf = PF_INET; #ifdef CURLRES_IPV6 struct in6_addr in6; #endif /* CURLRES_IPV6 */ *waitp = 0; /* default to synchronous response */ *waitp = 0; /* default to synchronous response */ #ifndef USE_RESOLVE_ON_IPS #ifndef USE_RESOLVE_ON_IPS { struct in_addr in; /* First check if this is an IPv4 address string */ /* First check if this is an IPv4 address string */ if(Curl_inet_pton(AF_INET, hostname, &in) > 0) if(Curl_inet_pton(AF_INET, hostname, &in) > 0) /* This is a dotted IP address 123.123.123.123-style */ /* This is a dotted IP address 123.123.123.123-style */ return Curl_ip2addr(AF_INET, &in, hostname, port); return Curl_ip2addr(AF_INET, &in, hostname, port); } #ifdef CURLRES_IPV6 #ifdef CURLRES_IPV6 { struct in6_addr in6; /* check if this is an IPv6 address string */ /* check if this is an IPv6 address string */ if(Curl_inet_pton(AF_INET6, hostname, &in6) > 0) if(Curl_inet_pton(AF_INET6, hostname, &in6) > 0) /* This is an IPv6 address literal */ /* This is an IPv6 address literal */ return Curl_ip2addr(AF_INET6, &in6, hostname, port); return Curl_ip2addr(AF_INET6, &in6, hostname, port); } #endif /* CURLRES_IPV6 */ #endif /* CURLRES_IPV6 */ #endif /* !USE_RESOLVE_ON_IPS */ #endif /* !USE_RESOLVE_ON_IPS */ Loading