Author: ion
Date: Thu Sep 20 00:04:42 2012
New Revision: 57347
URL:
http://svn.reactos.org/svn/reactos?rev=57347&view=rev
Log:
[NTOSKRNL]: DACL and SACL should only be returned if the control flag indicates that they
are present.
Modified:
trunk/reactos/ntoskrnl/include/internal/se.h
Modified: trunk/reactos/ntoskrnl/include/internal/se.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/se.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/se.h [iso-8859-1] Thu Sep 20 00:04:42 2012
@@ -69,6 +69,8 @@
PISECURITY_DESCRIPTOR Descriptor = (PISECURITY_DESCRIPTOR)_Descriptor;
PISECURITY_DESCRIPTOR_RELATIVE SdRel;
+ if (!(Descriptor->Control & SE_DACL_PRESENT)) return NULL;
+
if (Descriptor->Control & SE_SELF_RELATIVE)
{
SdRel = (PISECURITY_DESCRIPTOR_RELATIVE)Descriptor;
@@ -87,6 +89,8 @@
{
PISECURITY_DESCRIPTOR Descriptor = (PISECURITY_DESCRIPTOR)_Descriptor;
PISECURITY_DESCRIPTOR_RELATIVE SdRel;
+
+ if (!(Descriptor->Control & SE_SACL_PRESENT)) return NULL;
if (Descriptor->Control & SE_SELF_RELATIVE)
{