mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 18:33:38 +00:00
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.
This commit is contained in:
parent
f221465a3c
commit
3a143c0938
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue