[NTOSKRNL:SE]

- Do not dereference pointer before checking against NULL in SeSetSecurityDescriptorInfo

svn path=/trunk/; revision=56807
This commit is contained in:
Thomas Faber 2012-06-26 08:36:58 +00:00
parent f7267c995f
commit a24b150c36

View file

@ -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 */