aboutsummaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-01-03 10:22:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-01-03 10:22:59 +0000
commit6de7dc5879b3605a180dafa05f792f132eafdcaa (patch)
tree9684f8c2427082965204ee5589a2ee1e5dc6191d /lib/easy.c
parent6aaee5f23bdc75826a733e40335078b97bfe1967 (diff)
Sterling Hughes' provided initial DNS cache source code.
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 245bbf955..c24eb9018 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -76,6 +76,7 @@
#include "ssluse.h"
#include "url.h"
#include "getinfo.h"
+#include "hostip.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -139,7 +140,9 @@ CURLcode curl_global_init(long flags)
{
if (initialized)
return CURLE_OK;
-
+
+ Curl_host_cache_init();
+
if (flags & CURL_GLOBAL_SSL)
Curl_SSL_init();
@@ -162,6 +165,8 @@ void curl_global_cleanup(void)
if (!initialized)
return;
+ Curl_host_cache_dtor();
+
if (init_flags & CURL_GLOBAL_SSL)
Curl_SSL_cleanup();