mirror of
https://github.com/curl/curl.git
synced 2026-05-30 11:27:29 +03:00
setopt: allow CURLOPT_DNS_CACHE_TIMEOUT set to -1
It is documented as valid. Regression from commit b059f7deaf shipped in
8.16.0
Reported-by: Andrei Kurushin
Fixes #18959
Closes #18960
This commit is contained in:
parent
5d32c4fc7b
commit
29d0a308b4
1 changed files with 4 additions and 1 deletions
|
|
@ -879,7 +879,10 @@ static CURLcode setopt_long(struct Curl_easy *data, CURLoption option,
|
|||
|
||||
switch(option) {
|
||||
case CURLOPT_DNS_CACHE_TIMEOUT:
|
||||
return setopt_set_timeout_sec(&s->dns_cache_timeout_ms, arg);
|
||||
if(arg != -1)
|
||||
return setopt_set_timeout_sec(&s->dns_cache_timeout_ms, arg);
|
||||
s->dns_cache_timeout_ms = -1;
|
||||
break;
|
||||
|
||||
case CURLOPT_CA_CACHE_TIMEOUT:
|
||||
if(Curl_ssl_supports(data, SSLSUPP_CA_CACHE)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue