mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:33:33 +03:00
url: fix CURLOPT_DNS_CACHE_TIMEOUT arg value check to allow -1
Prior to this change since f121575 (7.56.1+) CURLOPT_DNS_CACHE_TIMEOUT
erroneously rejected -1 with CURLE_BAD_FUNCTION_ARGUMENT.
This commit is contained in:
parent
544bfdebea
commit
b51e0742b9
1 changed files with 1 additions and 1 deletions
|
|
@ -722,7 +722,7 @@ CURLcode Curl_setopt(struct Curl_easy *data, CURLoption option,
|
|||
switch(option) {
|
||||
case CURLOPT_DNS_CACHE_TIMEOUT:
|
||||
arg = va_arg(param, long);
|
||||
if(arg < 0)
|
||||
if(arg < -1)
|
||||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
data->set.dns_cache_timeout = arg;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue