← Commit list

9236199908

Daniel Stenberg
Daniel Stenberg
2025-09-17
FAILED Duration: 208s

Subject

setopt: make CURLOPT_MAXREDIRS accept -1 (again)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/setopt.c+1 -1
@@ -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;