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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue