aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-11-28 15:48:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-11-28 15:48:54 +0000
commitd64dd779931482c614c7cb71d8f9ad81f2417479 (patch)
tree9af4801af1f1a640b11d8e6dc7b3af91d2789cba /lib
parent113850a7483068848cbc42ab129d18452af41d24 (diff)
fix the hash init to call the correct dns cleanup function
Diffstat (limited to 'lib')
-rw-r--r--lib/multi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/multi.c b/lib/multi.c
index f901f3a0f..8548354bd 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -313,9 +313,8 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
easy->easy_handle->hostcache = Curl_global_host_cache_get();
}
else {
- if (multi->hostcache == NULL) {
- multi->hostcache = Curl_hash_alloc(7, Curl_freeaddrinfo);
- }
+ if (multi->hostcache == NULL)
+ multi->hostcache = Curl_hash_alloc(7, Curl_freednsinfo);
easy->easy_handle->hostcache = multi->hostcache;
}