summaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-12-31 10:28:10 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-12-31 10:45:27 +0100
commit5e0a44e4d58855a52b6e0744df4fab09ded3873c (patch)
tree92712f9fcec6f6ad95e4f139c35adedd25c1ae98 /lib/hostip.h
parent9e3f8c48501920c2c944f7a6eb447849500a3033 (diff)
downloadcurl-5e0a44e4d58855a52b6e0744df4fab09ded3873c.tar.gz
CURLOPT_RESOLVE: avoid adding already present host names
The load host names to DNS cache function was moved to hostip.c and it now makes sure to not add host names that already are present in the cache. It would previously lead to memory leaks when for example using the --resolve and multiple URLs on the command line.
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hostip.h b/lib/hostip.h
index 100bdc58e..12fb80f54 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -205,4 +205,6 @@ CURLcode Curl_set_dns_servers(struct SessionHandle *data, char *servers);
*/
void Curl_hostcache_destroy(struct SessionHandle *data);
+CURLcode Curl_loadhostpairs(struct SessionHandle *data);
+
#endif /* HEADER_CURL_HOSTIP_H */