mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- If SeCaptureSubjectContextEx is called without a process, at least NULL-initialize the context to catch dereferences of invalid pointers.
svn path=/trunk/; revision=23698
This commit is contained in:
@@ -426,7 +426,13 @@ SeCaptureSubjectContextEx(IN PETHREAD Thread,
|
||||
PAGED_CODE();
|
||||
|
||||
/* ROS HACK */
|
||||
if (!Process) return;
|
||||
if (!Process)
|
||||
{
|
||||
SubjectContext->PrimaryToken = NULL;
|
||||
SubjectContext->ProcessAuditId = 0;
|
||||
SubjectContext->ClientToken = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
/* Save the unique ID */
|
||||
SubjectContext->ProcessAuditId = Process->UniqueProcessId;
|
||||
|
||||
Reference in New Issue
Block a user