← Commit list

cffc912844

Daniel Stenberg
Daniel Stenberg
2025-12-01
SUCCESS Duration: 163s

Subject

url: fix return code for OOM in parse_proxy()

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/url.c+6 -2
@@ -2250,11 +2250,15 @@ static CURLcode parse_proxy(struct Curl_easy *data,
/* Is there a username and password given in this proxy url? */
uc = curl_url_get(uhp, CURLUPART_USER, &proxyuser, CURLU_URLDECODE);
- if(uc && (uc != CURLUE_NO_USER))
+ if(uc && (uc != CURLUE_NO_USER)) {
+ result = Curl_uc_to_curlcode(uc);
goto error;
+ }
uc = curl_url_get(uhp, CURLUPART_PASSWORD, &proxypasswd, CURLU_URLDECODE);
- if(uc && (uc != CURLUE_NO_PASSWORD))
+ if(uc && (uc != CURLUE_NO_PASSWORD)) {
+ result = Curl_uc_to_curlcode(uc);
goto error;
+ }
if(proxyuser || proxypasswd) {
curlx_free(proxyinfo->user);