mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Clear the memory after we know that the buffer was allocated.
svn path=/trunk/; revision=17308
This commit is contained in:
@@ -719,8 +719,6 @@ SeAssignSecurity(PSECURITY_DESCRIPTOR ParentDescriptor OPTIONAL,
|
||||
|
||||
Descriptor = ExAllocatePool(PagedPool,
|
||||
Length);
|
||||
RtlZeroMemory( Descriptor, Length );
|
||||
|
||||
if (Descriptor == NULL)
|
||||
{
|
||||
DPRINT1("ExAlloctePool() failed\n");
|
||||
@@ -728,6 +726,7 @@ SeAssignSecurity(PSECURITY_DESCRIPTOR ParentDescriptor OPTIONAL,
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
RtlZeroMemory( Descriptor, Length );
|
||||
RtlCreateSecurityDescriptor(Descriptor,
|
||||
SECURITY_DESCRIPTOR_REVISION);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user