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

This commit is contained in:
Daniel Stenberg 2000-10-08 12:50:51 +00:00
parent 5b39a48e22
commit 1e2e6a4e33

View File

@ -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;