Loading lib/easy.c +8 −6 Original line number Diff line number Diff line Loading @@ -233,14 +233,16 @@ CURLcode curl_easy_perform(CURL *curl) { struct SessionHandle *data = (struct SessionHandle *)curl; if (!data->hostcache) { if (Curl_global_host_cache_use(data)) { if (Curl_global_host_cache_use(data) && data->hostcache != Curl_global_host_cache_get()) { if (data->hostcache) { Curl_hash_destroy(data->hostcache); } data->hostcache = Curl_global_host_cache_get(); } else { if (!data->hostcache) { data->hostcache = Curl_hash_alloc(7, Curl_freednsinfo); } } return Curl_perform(data); } Loading Loading
lib/easy.c +8 −6 Original line number Diff line number Diff line Loading @@ -233,14 +233,16 @@ CURLcode curl_easy_perform(CURL *curl) { struct SessionHandle *data = (struct SessionHandle *)curl; if (!data->hostcache) { if (Curl_global_host_cache_use(data)) { if (Curl_global_host_cache_use(data) && data->hostcache != Curl_global_host_cache_get()) { if (data->hostcache) { Curl_hash_destroy(data->hostcache); } data->hostcache = Curl_global_host_cache_get(); } else { if (!data->hostcache) { data->hostcache = Curl_hash_alloc(7, Curl_freednsinfo); } } return Curl_perform(data); } Loading