From 1e2e6a4e3310c05f68b85be6fa2344b9841bf016 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 8 Oct 2000 12:50:51 +0000 Subject: [PATCH] GetHost() did not properly assign the third argument pointer! --- lib/hostip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/hostip.c b/lib/hostip.c index 4a07fdb..3d43825 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; -- 2.7.4