Skip to content
Snippets Groups Projects
Commit 6212e699 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

someone should have me punished, but this bug made curl bug seriously

on IPv4-linux machines
parent 28049a18
No related branches found
No related tags found
No related merge requests found
......@@ -467,7 +467,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
/* Linux */
if( gethostbyname_r(hostname,
(struct hostent *)buf,
buf + sizeof(struct hostent),
(char *)buf + sizeof(struct hostent),
CURL_NAMELOOKUP_SIZE - sizeof(struct hostent),
&h, /* DIFFERENCE */
&h_errnop))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment