summaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-12-23 14:30:43 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-12-23 14:46:20 +0100
commit2caa454dc19237588ee3696fac2d74fb86eb0d98 (patch)
treeb1e56cc99e09a8edb671400d930a63050e280d4c /lib/hostip.h
parent3e4181f88ef170ed902db035797d02cea1bcc2ec (diff)
downloadcurl-2caa454dc19237588ee3696fac2d74fb86eb0d98.tar.gz
resolve: don't leak pre-populated dns entries
CURLOPT_RESOLVE populates the DNS cache with entries that are marked as eternally in use. Those entries need to be taken care of when the cache is killed off. Bug: http://curl.haxx.se/bug/view.cgi?id=3463121 Reported by: "tw84452852"
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/hostip.h b/lib/hostip.h
index dbbb1f7a2..100bdc58e 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -200,4 +200,9 @@ extern sigjmp_buf curl_jmpenv;
*/
CURLcode Curl_set_dns_servers(struct SessionHandle *data, char *servers);
+/*
+ * Destroy the hostcache of this handle.
+ */
+void Curl_hostcache_destroy(struct SessionHandle *data);
+
#endif /* HEADER_CURL_HOSTIP_H */