mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08: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
@ -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…
Reference in New Issue
Block a user