diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-12 20:41:35 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-15 11:44:43 +1000 |
commit | dcfb6aad16b4b7b70a63340a17771d3f40aed1ce (patch) | |
tree | 642350bd8b0e54bdbb24bcd7b712c411eedd3441 /source3/include | |
parent | 47082ad3fae086c168bfedaa2fba692eccff3145 (diff) | |
download | samba-dcfb6aad16b4b7b70a63340a17771d3f40aed1ce.tar.gz samba-dcfb6aad16b4b7b70a63340a17771d3f40aed1ce.tar.bz2 samba-dcfb6aad16b4b7b70a63340a17771d3f40aed1ce.zip |
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
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/smb_acls.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |