diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index 6d1672bc63..8c2ff40480 100644 --- a/lib/http_ntlm.c +++ b/lib/http_ntlm.c @@ -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 */