mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:03:31 +03:00
resolve: don't leak pre-populated dns entries
CURLOPT_RESOLVE populates the DNS cache with entries that are marked as eternally in use. Those entries need to be taken care of when the cache is killed off. Bug: http://curl.haxx.se/bug/view.cgi?id=3463121 Reported by: "tw84452852"
This commit is contained in:
parent
3e4181f88e
commit
2caa454dc1
3 changed files with 29 additions and 12 deletions
|
|
@ -200,4 +200,9 @@ extern sigjmp_buf curl_jmpenv;
|
|||
*/
|
||||
CURLcode Curl_set_dns_servers(struct SessionHandle *data, char *servers);
|
||||
|
||||
/*
|
||||
* Destroy the hostcache of this handle.
|
||||
*/
|
||||
void Curl_hostcache_destroy(struct SessionHandle *data);
|
||||
|
||||
#endif /* HEADER_CURL_HOSTIP_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue