mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
someone should have me punished, but this bug made curl bug seriously
on IPv4-linux machines
This commit is contained in:
parent
28049a183c
commit
6212e6990a
@ -467,7 +467,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
|
|||||||
/* Linux */
|
/* Linux */
|
||||||
if( gethostbyname_r(hostname,
|
if( gethostbyname_r(hostname,
|
||||||
(struct hostent *)buf,
|
(struct hostent *)buf,
|
||||||
buf + sizeof(struct hostent),
|
(char *)buf + sizeof(struct hostent),
|
||||||
CURL_NAMELOOKUP_SIZE - sizeof(struct hostent),
|
CURL_NAMELOOKUP_SIZE - sizeof(struct hostent),
|
||||||
&h, /* DIFFERENCE */
|
&h, /* DIFFERENCE */
|
||||||
&h_errnop))
|
&h_errnop))
|
||||||
|
Loading…
Reference in New Issue
Block a user