aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index d21cab247..417121cb3 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3227,6 +3227,8 @@ CURLcode Curl_done(struct connectdata *conn)
NULL, Curl_scan_cache_used);
#endif
+ Curl_hostcache_prune(data); /* kill old DNS cache entries */
+
/* this calls the protocol-specific function pointer previously set */
if(conn->curl_done)
result = conn->curl_done(conn);