1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

smbd: zero intialize SMB_STRUCT_STAT in vfswrap_readdir()

Avoid returning an uninitialized st.cached_dos_attributes.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15375

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2023-05-23 17:23:28 +02:00 committed by Jeremy Allison
parent b4af281b2d
commit 0391120079
2 changed files with 1 additions and 2 deletions

View File

@ -1 +0,0 @@
^samba3.blackbox.test_symlink_dosmode.symlink_dosmode\(fileserver\)

View File

@ -603,7 +603,7 @@ static struct dirent *vfswrap_readdir(vfs_handle_struct *handle,
struct dirent *result;
bool fake_ctime = lp_fake_directory_create_times(SNUM(handle->conn));
int flags = AT_SYMLINK_NOFOLLOW;
SMB_STRUCT_STAT st;
SMB_STRUCT_STAT st = {0};
int ret;
START_PROFILE(syscall_readdir);