mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
r22592: Fix TALLOC_SIZE to be consistent.
Jeremy.
This commit is contained in:
parent
aa5a1591c6
commit
8044a6482c
@ -206,14 +206,18 @@ static BOOL smbacl4_nfs42win(SMB4ACL_T *acl, /* in */
|
||||
if (aclint==NULL)
|
||||
return False;
|
||||
|
||||
nt_ace_list = (SEC_ACE *)TALLOC_SIZE(mem_ctx, aclint->naces * sizeof(SEC_ACE));
|
||||
if (nt_ace_list==NULL)
|
||||
{
|
||||
DEBUG(10, ("talloc error"));
|
||||
errno = ENOMEM;
|
||||
return False;
|
||||
if (aclint->naces) {
|
||||
nt_ace_list = (SEC_ACE *)TALLOC_SIZE(mem_ctx, aclint->naces * sizeof(SEC_ACE));
|
||||
if (nt_ace_list==NULL)
|
||||
{
|
||||
DEBUG(10, ("talloc error"));
|
||||
errno = ENOMEM;
|
||||
return False;
|
||||
}
|
||||
memset(nt_ace_list, 0, aclint->naces * sizeof(SEC_ACE));
|
||||
} else {
|
||||
nt_ace_list = NULL;
|
||||
}
|
||||
memset(nt_ace_list, 0, aclint->naces * sizeof(SEC_ACE));
|
||||
|
||||
for (aceint=aclint->first; aceint!=NULL; aceint=(SMB_ACE4_INT_T *)aceint->next) {
|
||||
SEC_ACCESS mask;
|
||||
|
Loading…
x
Reference in New Issue
Block a user