[NTOS:SE]
authorThomas Faber <thomas.faber@reactos.org>
Fri, 23 Oct 2015 12:40:29 +0000 (12:40 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Fri, 23 Oct 2015 12:40:29 +0000 (12:40 +0000)
- Fail if the provided default DACL is invalid in NtCreateToken. CID 1237131

svn path=/trunk/; revision=69657

reactos/ntoskrnl/se/token.c

index 248d097..2eeb1ff 100644 (file)
@@ -2852,6 +2852,10 @@ NtCreateToken(
                                NonPagedPool,
                                FALSE,
                                &CapturedDefaultDacl);
+        if (!NT_SUCCESS(Status))
+        {
+            goto Cleanup;
+        }
     }
 
     /* Call the internal function */