mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:21:41 +03:00
multi: fix connection retry for non-http
non-HTTP protocols no longer retry after connection reuse failures
because multi_follow() now requires a handler->follow callback that is
NULL for those protocols. Provide a fallback for plain retries.
Follow-up to 1213c31272
Spotted by Codex Security
Closes #21121
This commit is contained in:
parent
2e8c922a89
commit
28fbf4a87d
1 changed files with 6 additions and 0 deletions
|
|
@ -1955,6 +1955,12 @@ static CURLcode multi_follow(struct Curl_easy *data,
|
|||
{
|
||||
if(handler && handler->run->follow)
|
||||
return handler->run->follow(data, newurl, type);
|
||||
|
||||
if(type == FOLLOW_RETRY)
|
||||
/* Retries are generic and do not require protocol-specific redirect
|
||||
handling. */
|
||||
return CURLE_OK;
|
||||
|
||||
return CURLE_TOO_MANY_REDIRECTS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue