mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Clear the memory after we know that the buffer was allocated.
svn path=/trunk/; revision=17308
This commit is contained in:
parent
20731f1883
commit
d921a7ca15
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue