summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-02-06 15:40:46 +0000
committerMichael Adam <obnox@samba.org>2014-02-12 21:47:06 +0100
commite4bad9248098c604272eb3e081829402b4d78697 (patch)
tree078d26e43bc65df4c94fc7d059befff7abca8e03 /source3
parente02c94d13bab4fb4ad791b7c0dedd963c33804cb (diff)
downloadsamba-e4bad9248098c604272eb3e081829402b4d78697.tar.gz
samba-e4bad9248098c604272eb3e081829402b4d78697.tar.xz
samba-e4bad9248098c604272eb3e081829402b4d78697.zip
smbd: Fix an uninitialized read
We have to ship 64 bytes, and we have to initialize the whole thing. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_default.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 815dc43e2d..5c48d04f1c 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -1065,6 +1065,7 @@ static NTSTATUS vfswrap_fsctl(struct vfs_handle_struct *handle,
push_file_id_16(return_data, &fsp->file_id);
memcpy(return_data+16,create_volume_objectid(fsp->conn,objid),16);
push_file_id_16(return_data+32, &fsp->file_id);
+ memset(return_data+48, 0, 16);
*out_data = return_data;
return NT_STATUS_OK;
}