diff --git a/lib/hostip.c b/lib/hostip.c index 4a07fdb47c5a63699ef9f49eba0796381ea734ff..3d43825ba4ea9465eec57405993fe3708a52113c 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -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;