aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-10-08 12:50:51 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-10-08 12:50:51 +0000
commit1e2e6a4e3310c05f68b85be6fa2344b9841bf016 (patch)
tree9622edc9bfca55f091cb241d01a5fc7162273ec3 /lib
parent5b39a48e22b95d23aa1066cf98cc0ad5f62eba4e (diff)
GetHost() did not properly assign the third argument pointer!
Diffstat (limited to 'lib')
-rw-r--r--lib/hostip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 4a07fdb47..3d43825ba 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;