← Commit list

0e054134b7

Daniel Stenberg
Daniel Stenberg
2025-12-27
SUCCESS Duration: 196s

Subject

urlapi: return OOM correctly from parse_hostname_login()

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+2 -1
@@ -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;
}