http_ntlm: protect against null deref

Closes #17585
This commit is contained in:
Daniel Stenberg 2025-06-11 09:33:04 +02:00
parent 950bd72401
commit 5586520745
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -168,6 +168,8 @@ CURLcode Curl_output_ntlm(struct Curl_easy *data, bool proxy)
authp = &data->state.authhost;
}
ntlm = Curl_auth_ntlm_get(conn, proxy);
if(!ntlm)
return CURLE_OUT_OF_MEMORY;
authp->done = FALSE;
/* not set means empty */