← Commit list

012fa2b91b

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

Subject

auth: always treat Curl_auth_ntlm_get() returning NULL as OOM

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/curl_sasl.c+1 -1
@@ -705,7 +705,7 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct Curl_easy *data,
case SASL_NTLM_TYPE2MSG: {
/* Decode the type-2 message */
struct ntlmdata *ntlm = Curl_auth_ntlm_get(conn, FALSE);
- result = !ntlm ? CURLE_FAILED_INIT :
+ result = !ntlm ? CURLE_OUT_OF_MEMORY :
get_server_message(sasl, data, &serverdata);
if(!result)
result = Curl_auth_decode_ntlm_type2_message(data, &serverdata, ntlm);
lib/http_ntlm.c+1 -1
@@ -64,7 +64,7 @@ CURLcode Curl_input_ntlm(struct Curl_easy *data,
if(checkprefix("NTLM", header)) {
struct ntlmdata *ntlm = Curl_auth_ntlm_get(conn, proxy);
if(!ntlm)
- return CURLE_FAILED_INIT;
+ return CURLE_OUT_OF_MEMORY;
header += strlen("NTLM");
curlx_str_passblanks(&header);