mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:50:52 +00:00
msv1_0: Avoid double free when SpInitLsaModeContext fails.
This commit is contained in:
parent
3a143c0938
commit
b17629045f
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue