summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-09-09 01:59:39 +0200
committerBjörn Jacke <bj@sernet.de>2012-09-09 15:43:51 +0200
commitb89d9887e8fd20bef9bbc6383e63cd356db08361 (patch)
tree8f6fb8c0c91bc4aa5f5f1d330418a8b27bea1d1e
parent7a51c5e46959d2f142052a2f9799ac5a44b99345 (diff)
downloadsamba-b89d9887e8fd20bef9bbc6383e63cd356db08361.tar.gz
samba-b89d9887e8fd20bef9bbc6383e63cd356db08361.tar.bz2
samba-b89d9887e8fd20bef9bbc6383e63cd356db08361.zip
s3: fix wrong invocations of talloc_realloc
-rw-r--r--source3/modules/vfs_aixacl_util.c4
1 files 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"));