summaryrefslogtreecommitdiffstats
path: root/libcli
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-12-06 09:26:25 +0000
committerJeremy Allison <jra@samba.org>2013-12-13 12:45:57 -0800
commitb6e323bcf61c0db013122f321c11dba4211af17e (patch)
tree558e5c1b8fe5798d8787fa70886157420fd53c98 /libcli
parent2b113599f8a95b9d5c031511a2515ce9ffe98af2 (diff)
downloadsamba-b6e323bcf61c0db013122f321c11dba4211af17e.tar.gz
samba-b6e323bcf61c0db013122f321c11dba4211af17e.tar.xz
samba-b6e323bcf61c0db013122f321c11dba4211af17e.zip
secacl: Don't use talloc_zero
We initialize all but one field anyway Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/security/secacl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcli/security/secacl.c b/libcli/security/secacl.c
index b97087b0dd..5778800454 100644
--- a/libcli/security/secacl.c
+++ b/libcli/security/secacl.c
@@ -38,12 +38,15 @@ struct security_acl *make_sec_acl(TALLOC_CTX *ctx,
struct security_acl *dst;
int i;
- if((dst = talloc_zero(ctx, struct security_acl)) == NULL)
+ dst = talloc(ctx, struct security_acl);
+ if (dst == NULL) {
return NULL;
+ }
dst->revision = revision;
dst->num_aces = num_aces;
dst->size = SEC_ACL_HEADER_SIZE;
+ dst->aces = NULL;
/* Now we need to return a non-NULL address for the ace list even
if the number of aces required is zero. This is because there