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

GetHost() did not properly assign the third argument pointer!

parent 5b39a48e
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,7 @@ struct hostent *GetHost(struct UrlData *data,
char *buf = (char *)malloc(CURL_NAMELOOKUP_SIZE);
if(!buf)
return NULL; /* major failure */
*bufp = buf;
if ( (in=inet_addr(hostname)) != INADDR_NONE ) {
struct in_addr *addrentry;
......
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