diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-19 20:17:16 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-19 20:17:16 +0000 |
commit | 5779283a52a1369cccbe1a1d314e2ec8ac949e0f (patch) | |
tree | a3abefd48a641c96e3686bf05c9615adfc80f39e /lib/easy.c | |
parent | 80d0dcc9a3124dcecc9d1f7296f2ac429bc7d704 (diff) | |
download | curl-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.c | 5 |
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) { |