mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[NTOSKRNL]
Fix lock/unlock order in SeLockSubjectContext/SeUnlockSubjectContext. Patch by Volodymyr Shcherbyna. CORE-11966 #resolve #comment Thanks a lot! svn path=/trunk/; revision=72644
This commit is contained in:
@@ -338,12 +338,14 @@ SeUnlockSubjectContext(IN PSECURITY_SUBJECT_CONTEXT SubjectContext)
|
||||
PrimaryToken = SubjectContext->PrimaryToken;
|
||||
ClientToken = SubjectContext->ClientToken;
|
||||
|
||||
/* Unlock the impersonation one if it's there */
|
||||
if (ClientToken)
|
||||
{
|
||||
SepReleaseTokenLock(ClientToken);
|
||||
}
|
||||
|
||||
/* Always unlock the primary one */
|
||||
SepReleaseTokenLock(PrimaryToken);
|
||||
|
||||
/* Unlock the impersonation one if it's there */
|
||||
if (!ClientToken) return;
|
||||
SepReleaseTokenLock(ClientToken);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user