mirror of
https://github.com/curl/curl.git
synced 2026-07-02 17:27:17 +03:00
urlapi: return OOM correctly from parse_hostname_login()
This commit is contained in:
parent
6f866109be
commit
5c85b0dbf7
1 changed files with 2 additions and 1 deletions
|
|
@ -368,7 +368,8 @@ static CURLUcode parse_hostname_login(struct Curl_URL *u,
|
|||
(h && (h->flags & PROTOPT_URLOPTIONS)) ?
|
||||
&optionsp : NULL);
|
||||
if(ccode) {
|
||||
result = CURLUE_BAD_LOGIN;
|
||||
result = (ccode == CURLE_OUT_OF_MEMORY) ? CURLUE_OUT_OF_MEMORY :
|
||||
CURLUE_BAD_LOGIN;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue