mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 16:30:26 +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;
|
SECURITY_INFORMATION SecurityInformation;
|
||||||
|
|
||||||
ObjectSd = *ObjectsSecurityDescriptor;
|
ObjectSd = *ObjectsSecurityDescriptor;
|
||||||
ASSERT(ObjectSd->Control & SE_SELF_RELATIVE);
|
|
||||||
|
|
||||||
/* The object does not have a security descriptor. */
|
/* The object does not have a security descriptor. */
|
||||||
if (!ObjectSd)
|
if (!ObjectSd)
|
||||||
return STATUS_NO_SECURITY_ON_OBJECT;
|
return STATUS_NO_SECURITY_ON_OBJECT;
|
||||||
|
|
||||||
|
ASSERT(ObjectSd->Control & SE_SELF_RELATIVE);
|
||||||
|
|
||||||
SecurityInformation = *_SecurityInformation;
|
SecurityInformation = *_SecurityInformation;
|
||||||
|
|
||||||
/* Get owner and owner size */
|
/* Get owner and owner size */
|
||||||
|
|
Loading…
Reference in a new issue