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

msv1_0: Avoid double free when SpInitLsaModeContext fails.

parent 3a143c09
...@@ -862,7 +862,7 @@ static NTSTATUS NTAPI ntlm_SpInitLsaModeContext( LSA_SEC_HANDLE cred_handle, LSA ...@@ -862,7 +862,7 @@ static NTSTATUS NTAPI ntlm_SpInitLsaModeContext( LSA_SEC_HANDLE cred_handle, LSA
} }
done: done:
if (status != SEC_E_OK && status != SEC_I_CONTINUE_NEEDED) if (status != SEC_E_OK && status != SEC_I_CONTINUE_NEEDED && !ctx_handle && !input)
{ {
ntlm_cleanup( ctx ); ntlm_cleanup( ctx );
free( 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