From: George Bișoc Date: Sun, 25 Jul 2021 16:02:32 +0000 (+0200) Subject: [NTOS:SE] Remove redundant commented call on token duplication X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=e2a8585edc0883408dd10778228e6c66d44c5876 [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. --- 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)) {