mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 20:13:37 +00:00
msv1_0: Avoid double free when SpInitLsaModeContext fails.
This commit is contained in:
parent
3a143c0938
commit
b17629045f
|
@ -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