]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GetHost() did not properly assign the third argument pointer!
authorDaniel Stenberg <daniel@haxx.se>
Sun, 8 Oct 2000 12:50:51 +0000 (12:50 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 8 Oct 2000 12:50:51 +0000 (12:50 +0000)
lib/hostip.c

index 4a07fdb47c5a63699ef9f49eba0796381ea734ff..3d43825ba4ea9465eec57405993fe3708a52113c 100644 (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;