tool_operate: fix return code when --retry is used but not triggered

Verify with test 752

Reported-by: fjaell on github
Fixes #17554
Closes #17559
This commit is contained in:
Daniel Stenberg 2025-06-09 08:37:49 +02:00
parent 128c5ddc6b
commit b42776b4f4
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 75 additions and 2 deletions

View file

@ -548,8 +548,9 @@ static CURLcode retrycheck(struct OperationConfig *config,
*retryp = TRUE;
per->num_retries++;
*delayms = sleeptime;
result = CURLE_OK;
}
return CURLE_OK;
return result;
}