mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:11:40 +03:00
url: if curl_url_get() fails due to OOM, error out properly
Even if the scheme is "file"! Closes #19838
This commit is contained in:
parent
a1531261b1
commit
f1f76e0ea8
1 changed files with 2 additions and 1 deletions
|
|
@ -1919,7 +1919,8 @@ static CURLcode parseurlandfillconn(struct Curl_easy *data,
|
|||
uc = curl_url_get(uh, CURLUPART_PORT, &data->state.up.port,
|
||||
CURLU_DEFAULT_PORT);
|
||||
if(uc) {
|
||||
if(!curl_strequal("file", data->state.up.scheme))
|
||||
if((uc == CURLUE_OUT_OF_MEMORY) ||
|
||||
!curl_strequal("file", data->state.up.scheme))
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue