mirror of
https://github.com/reactos/reactos.git
synced 2025-05-31 15:08:14 +00:00
[NTOSKRNL:SE]
- Do not dereference pointer before checking against NULL in SeSetSecurityDescriptorInfo svn path=/trunk/; revision=56807
This commit is contained in:
parent
f7267c995f
commit
a24b150c36
1 changed files with 2 additions and 1 deletions
|
@ -882,12 +882,13 @@ SeSetSecurityDescriptorInfo(IN PVOID Object OPTIONAL,
|
|||
SECURITY_INFORMATION SecurityInformation;
|
||||
|
||||
ObjectSd = *ObjectsSecurityDescriptor;
|
||||
ASSERT(ObjectSd->Control & SE_SELF_RELATIVE);
|
||||
|
||||
/* The object does not have a security descriptor. */
|
||||
if (!ObjectSd)
|
||||
return STATUS_NO_SECURITY_ON_OBJECT;
|
||||
|
||||
ASSERT(ObjectSd->Control & SE_SELF_RELATIVE);
|
||||
|
||||
SecurityInformation = *_SecurityInformation;
|
||||
|
||||
/* Get owner and owner size */
|
||||
|
|
Loading…
Reference in a new issue