summaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-19 20:17:16 +0000
committerYang Tse <yangsita@gmail.com>2008-10-19 20:17:16 +0000
commit5779283a52a1369cccbe1a1d314e2ec8ac949e0f (patch)
treea3abefd48a641c96e3686bf05c9615adfc80f39e /lib/easy.c
parent80d0dcc9a3124dcecc9d1f7296f2ac429bc7d704 (diff)
downloadcurl-5779283a52a1369cccbe1a1d314e2ec8ac949e0f.tar.gz
attempt to fix or allow further detection of an elusive icc SIGSEGV
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 04a219cbb..2c2490142 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -502,9 +502,12 @@ CURLcode curl_easy_perform(CURL *curl)
/* global dns cache was requested but still isn't */
struct curl_hash *ptr;
- if(data->dns.hostcachetype == HCACHE_PRIVATE)
+ if(data->dns.hostcachetype == HCACHE_PRIVATE) {
/* if the current cache is private, kill it first */
Curl_hash_destroy(data->dns.hostcache);
+ data->dns.hostcachetype = HCACHE_NONE;
+ data->dns.hostcache = NULL;
+ }
ptr = Curl_global_host_cache_init();
if(ptr) {