aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-31 13:09:11 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-31 13:09:11 +0000
commit5bc78cb724d5cef768ee37878c1837a4af1eabaf (patch)
tree95e03f7c67b4d9ddce152ddb3d0451f65ae23a69 /lib
parentcdba92ac3c71e32fc1b1d0c7b3248ca3753c9a7e (diff)
Disable the DNS cache (by setting the timeout to 0) made libcurl leak
memory. Avery Fay brought the example code that proved this.
Diffstat (limited to 'lib')
-rw-r--r--lib/hostip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 29d395d0a..1ad6951f3 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -218,11 +218,13 @@ Curl_addrinfo *Curl_resolv(struct SessionHandle *data,
}
#endif
+#if 0
/* If the host cache timeout is 0, we don't do DNS cach'ing
so fall through */
if (data->set.dns_cache_timeout == 0) {
return Curl_getaddrinfo(data, hostname, port, &bufp);
}
+#endif
time(&now);