summaryrefslogtreecommitdiff
path: root/source3/modules/nfs4_acls.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-08-11 13:36:45 +0200
committerVolker Lendecke <vl@samba.org>2015-08-13 14:40:16 +0200
commitfafd0a0c693dc523452640f00b96114b9ffddbf7 (patch)
treedd59c38fc1034af8186a9ba14d6173128b13bbc9 /source3/modules/nfs4_acls.c
parent7e630c32da6e3dd89325432c86e1e7870cbed9e1 (diff)
downloadsamba-fafd0a0c693dc523452640f00b96114b9ffddbf7.tar.gz
nfs4acls: Use talloc_realloc()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/modules/nfs4_acls.c')
-rw-r--r--source3/modules/nfs4_acls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/modules/nfs4_acls.c b/source3/modules/nfs4_acls.c
index fda4728e8c0..a680ad182e3 100644
--- a/source3/modules/nfs4_acls.c
+++ b/source3/modules/nfs4_acls.c
@@ -456,9 +456,9 @@ static bool smbacl4_nfs42win(TALLOC_CTX *mem_ctx,
}
}
- nt_ace_list = (struct security_ace *)
- TALLOC_REALLOC(mem_ctx, nt_ace_list,
- good_aces * sizeof(struct security_ace));
+ nt_ace_list = talloc_realloc(mem_ctx, nt_ace_list, struct security_ace,
+ good_aces);
+
/* returns a NULL ace list when good_aces is zero. */
if (good_aces && nt_ace_list == NULL) {
DEBUG(10, ("realloc error with %d aces", good_aces));