From dcfb6aad16b4b7b70a63340a17771d3f40aed1ce Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 12 Aug 2012 20:41:35 +1000 Subject: s3-smbd: Change allocation of smb_acl_t to talloc() The acl element is changed to be a talloc child, and is no longer one element longer than requested by virtue of the acl[1] base pointer. This also avoids one of the few remaining cases of over-allocation of a structure. Andrew Bartlett --- source3/include/smb_acls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/include') diff --git a/source3/include/smb_acls.h b/source3/include/smb_acls.h index 16bb61f670..4998e4b07d 100644 --- a/source3/include/smb_acls.h +++ b/source3/include/smb_acls.h @@ -54,7 +54,7 @@ typedef struct smb_acl_t { int size; int count; int next; - struct smb_acl_entry acl[1]; + struct smb_acl_entry *acl; } *SMB_ACL_T; typedef struct smb_acl_entry *SMB_ACL_ENTRY_T; -- cgit