mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:41:41 +03:00
urlapi: set uncondtional return code
Curl_parse_login_details() can only return a single return code so adjust accordingly. Pointed out by CodeSonar Closes #20107
This commit is contained in:
parent
2754e0f3d3
commit
7fc78c2c1c
1 changed files with 3 additions and 2 deletions
|
|
@ -368,8 +368,9 @@ static CURLUcode parse_hostname_login(struct Curl_URL *u,
|
|||
(h && (h->flags & PROTOPT_URLOPTIONS)) ?
|
||||
&optionsp : NULL);
|
||||
if(ccode) {
|
||||
result = (ccode == CURLE_OUT_OF_MEMORY) ? CURLUE_OUT_OF_MEMORY :
|
||||
CURLUE_BAD_LOGIN;
|
||||
/* the only possible error from Curl_parse_login_details is out of
|
||||
memory: */
|
||||
result = CURLUE_OUT_OF_MEMORY;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue