From b89d9887e8fd20bef9bbc6383e63cd356db08361 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Sun, 9 Sep 2012 01:59:39 +0200 Subject: s3: fix wrong invocations of talloc_realloc --- source3/modules/vfs_aixacl_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/modules/vfs_aixacl_util.c b/source3/modules/vfs_aixacl_util.c index bd5ccbbdc2..fb138667bb 100644 --- a/source3/modules/vfs_aixacl_util.c +++ b/source3/modules/vfs_aixacl_util.c @@ -63,7 +63,7 @@ SMB_ACL_T aixacl_to_smbacl(struct acl *file_acl) idp = acl_entry->ace_id; DEBUG(10,("idp->id_data is %d\n",idp->id_data[0])); - result->acl = talloc_realloc(result, result->acl, result->count+1); + result->acl = talloc_realloc(result, result->acl, struct smb_acl_entry, result->count+1); if (result == NULL) { DEBUG(0, ("talloc_realloc failed\n")); errno = ENOMEM; @@ -138,7 +138,7 @@ SMB_ACL_T aixacl_to_smbacl(struct acl *file_acl) for( i = 1; i < 4; i++) { DEBUG(10,("i is %d\n",i)); - result->acl = talloc_realloc(result, result->acl, result->count+1); + result->acl = talloc_realloc(result, result->acl, struct smb_acl_entry, result->count+1); if (result->acl == NULL) { TALLOC_FREE(result); DEBUG(0, ("talloc_realloc failed\n")); -- cgit