← Commit list

7fc78c2c1c

Daniel Stenberg
Daniel Stenberg
2025-12-29
SUCCESS Duration: 265s

Subject

urlapi: set uncondtional return code

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/urlapi.c+3 -2
@@ -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;
}