[NTOS:SE]
[reactos.git] / 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 */