From e2a8585edc0883408dd10778228e6c66d44c5876 Mon Sep 17 00:00:00 2001 From: =?utf8?q?George=20Bi=C8=99oc?= Date: Sun, 25 Jul 2021 18:02:32 +0200 Subject: [PATCH] [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)) { -- 2.17.1