mirror of
https://github.com/curl/curl.git
synced 2026-08-15 11:33:39 +03:00
http: fix OOM exit in Curl_http_follow
Spotted by "strict torture" tests. Closes #19705
This commit is contained in:
parent
cb722b32ad
commit
0d2bb9c7c6
1 changed files with 1 additions and 1 deletions
|
|
@ -1282,7 +1282,7 @@ CURLcode Curl_http_follow(struct Curl_easy *data, const char *newurl,
|
|||
CURLU_ALLOW_SPACE |
|
||||
(data->set.path_as_is ? CURLU_PATH_AS_IS : 0)));
|
||||
if(uc) {
|
||||
if(type != FOLLOW_FAKE) {
|
||||
if((uc == CURLUE_OUT_OF_MEMORY) || (type != FOLLOW_FAKE)) {
|
||||
failf(data, "The redirect target URL could not be parsed: %s",
|
||||
curl_url_strerror(uc));
|
||||
return Curl_uc_to_curlcode(uc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue