From 72da71acf925ffe4cc87ca2bcba3770af3fe3d8b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 14 Jul 2009 18:34:07 +0200 Subject: [PATCH] Create a correct talloc hierarchy in make_sec_acl() --- libcli/security/secacl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcli/security/secacl.c b/libcli/security/secacl.c index 9373ef58126..29afe460b16 100644 --- a/libcli/security/secacl.c +++ b/libcli/security/secacl.c @@ -51,7 +51,7 @@ struct security_acl *make_sec_acl(TALLOC_CTX *ctx, positive number. */ if ((num_aces) && - ((dst->aces = talloc_array(ctx, struct security_ace, num_aces)) + ((dst->aces = talloc_array(dst, struct security_ace, num_aces)) == NULL)) { return NULL; }