From a24b150c36bbd87ca87247368dfcf7a4702bd4c9 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Tue, 26 Jun 2012 08:36:58 +0000 Subject: [PATCH] [NTOSKRNL:SE] - Do not dereference pointer before checking against NULL in SeSetSecurityDescriptorInfo svn path=/trunk/; revision=56807 --- reactos/ntoskrnl/se/sd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/se/sd.c b/reactos/ntoskrnl/se/sd.c index b75c18afe54..c82cc51ae9d 100644 --- a/reactos/ntoskrnl/se/sd.c +++ b/reactos/ntoskrnl/se/sd.c @@ -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 */