From: Douglas Bagnall Date: Tue, 22 Aug 2023 02:13:44 +0000 (+1200) Subject: s4/ntfvfs/pvfs_acl: initialise ACEs to zeroes X-Git-Tag: tevent-0.16.0~820 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a45a434c7d8cc3d313e695de54efbefbdc9d2a2;p=thirdparty%2Fsamba.git s4/ntfvfs/pvfs_acl: initialise ACEs to zeroes Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c index 0278e29be6f..b143540a950 100644 --- a/source4/ntvfs/posix/pvfs_acl.c +++ b/source4/ntvfs/posix/pvfs_acl.c @@ -149,7 +149,7 @@ static NTSTATUS pvfs_default_acl(struct pvfs_state *pvfs, { struct security_descriptor *sd; NTSTATUS status; - struct security_ace ace; + struct security_ace ace = {}; mode_t mode; struct id_map *ids; diff --git a/source4/ntvfs/posix/pvfs_acl_nfs4.c b/source4/ntvfs/posix/pvfs_acl_nfs4.c index fc6c230817d..3ddc1b67485 100644 --- a/source4/ntvfs/posix/pvfs_acl_nfs4.c +++ b/source4/ntvfs/posix/pvfs_acl_nfs4.c @@ -98,7 +98,7 @@ static NTSTATUS pvfs_acl_load_nfs4(struct pvfs_state *pvfs, struct pvfs_filename for (i=0;ia_count;i++) { struct nfs4ace *a = &acl->ace[i]; - struct security_ace ace; + struct security_ace ace = {}; ace.type = a->e_type; ace.flags = a->e_flags; ace.access_mask = a->e_mask;