s3: fix wrong invocations of talloc_realloc
[gd/samba-autobuild/.git] / source3 / modules / vfs_aixacl_util.c
index bd5ccbbdc2334103377b010918aed0de45d94d22..fb138667bbd6601bf74bc684041459a66d8b4c3b 100644 (file)
@@ -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]));
                        
                        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;
                        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));
 
        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"));
                if (result->acl == NULL) {
                        TALLOC_FREE(result);
                        DEBUG(0, ("talloc_realloc failed\n"));