mirror of
https://github.com/curl/curl.git
synced 2026-07-16 02:17:15 +03:00
setopt: make CURLOPT_MAXREDIRS accept -1 (again)
Regression from b059f7d (shipped in 8.16.0)
Reported-by: Adam Light
Fixes #18571
Closes #18576
This commit is contained in:
parent
3053a3e90f
commit
9236199908
1 changed files with 1 additions and 1 deletions
|
|
@ -955,7 +955,7 @@ static CURLcode setopt_long(struct Curl_easy *data, CURLoption option,
|
|||
break;
|
||||
|
||||
case CURLOPT_MAXREDIRS:
|
||||
result = value_range(&arg, -1, 0, 0x7fff);
|
||||
result = value_range(&arg, -1, -1, 0x7fff);
|
||||
if(result)
|
||||
return result;
|
||||
s->maxredirs = (short)arg;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue