mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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,
|
Descriptor = ExAllocatePool(PagedPool,
|
||||||
Length);
|
Length);
|
||||||
RtlZeroMemory( Descriptor, Length );
|
|
||||||
|
|
||||||
if (Descriptor == NULL)
|
if (Descriptor == NULL)
|
||||||
{
|
{
|
||||||
DPRINT1("ExAlloctePool() failed\n");
|
DPRINT1("ExAlloctePool() failed\n");
|
||||||
|
@ -728,6 +726,7 @@ SeAssignSecurity(PSECURITY_DESCRIPTOR ParentDescriptor OPTIONAL,
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RtlZeroMemory( Descriptor, Length );
|
||||||
RtlCreateSecurityDescriptor(Descriptor,
|
RtlCreateSecurityDescriptor(Descriptor,
|
||||||
SECURITY_DESCRIPTOR_REVISION);
|
SECURITY_DESCRIPTOR_REVISION);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue