Commit 3a143c09 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

msv1_0: Avoid double free when SpAcceptLsaModeContext fails.

And a previously created context is passed, which may later be destroyed on its own, causing a double free.
parent f221465a
......@@ -1078,7 +1078,7 @@ static NTSTATUS NTAPI ntlm_SpAcceptLsaModeContext( LSA_SEC_HANDLE cred_handle, L
}
done:
if (status != SEC_E_OK && status != SEC_I_CONTINUE_NEEDED)
if (status != SEC_E_OK && status != SEC_I_CONTINUE_NEEDED && !ctx_handle)
{
ntlm_cleanup( ctx );
free( ctx );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment