https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e2a8585edc0883408dd10…
commit e2a8585edc0883408dd10778228e6c66d44c5876
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Sun Jul 25 18:02:32 2021 +0200
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Sun Jul 25 18:02:32 2021 +0200
[NTOS:SE] Remove redundant commented call on token duplication
When duplicating an access token, the authentication ID is already copied from the
existing token to the new one anyway so there's no point on having the commented call
still left in the code.
---
ntoskrnl/se/token.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ntoskrnl/se/token.c b/ntoskrnl/se/token.c
index 507a8d73bad..a7b004ae034 100644
--- a/ntoskrnl/se/token.c
+++ b/ntoskrnl/se/token.c
@@ -854,8 +854,7 @@ SepDuplicateToken(
AccessToken->TokenFlags = Token->TokenFlags &
~TOKEN_SESSION_NOT_REFERENCED;
- /* Copy and reference the logon session */
- // RtlCopyLuid(&AccessToken->AuthenticationId,
&Token->AuthenticationId);
+ /* Reference the logon session */
Status = SepRmReferenceLogonSession(&AccessToken->AuthenticationId);
if (!NT_SUCCESS(Status))
{