diff options
-rw-r--r-- | libcli/security/secacl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |