mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[NTOS:SE] Assign the captured SID and/or privileges to NULL manually on token filtering
This reverts 8479509 commit which pretty much does nothing at all (the captured pointer is NULL within the stack of the function has no effect outside of the function). My mistake, sorry.
This commit is contained in:
@@ -562,7 +562,6 @@ SeReleaseLuidAndAttributesArray(
|
||||
(PreviousMode != KernelMode || CaptureIfKernel))
|
||||
{
|
||||
ExFreePoolWithTag(Privilege, TAG_LUID);
|
||||
Privilege = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -776,7 +776,6 @@ SeReleaseSidAndAttributesArray(
|
||||
((AccessMode != KernelMode) || CaptureIfKernel))
|
||||
{
|
||||
ExFreePoolWithTag(CapturedSidAndAttributes, TAG_SID_AND_ATTRIBUTES);
|
||||
CapturedSidAndAttributes = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6819,6 +6819,7 @@ Quit:
|
||||
SeReleaseSidAndAttributesArray(CapturedSids,
|
||||
PreviousMode,
|
||||
TRUE);
|
||||
CapturedSids = NULL;
|
||||
}
|
||||
|
||||
if (CapturedPrivileges != NULL)
|
||||
@@ -6826,6 +6827,7 @@ Quit:
|
||||
SeReleaseLuidAndAttributesArray(CapturedPrivileges,
|
||||
PreviousMode,
|
||||
TRUE);
|
||||
CapturedPrivileges = NULL;
|
||||
}
|
||||
|
||||
if (CapturedRestrictedSids != NULL)
|
||||
@@ -6833,6 +6835,7 @@ Quit:
|
||||
SeReleaseSidAndAttributesArray(CapturedRestrictedSids,
|
||||
PreviousMode,
|
||||
TRUE);
|
||||
CapturedRestrictedSids = NULL;
|
||||
}
|
||||
|
||||
return Status;
|
||||
|
||||
Reference in New Issue
Block a user