git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e02c94d
)
smbd: Fix an uninitialized read
author
Volker Lendecke
<vl@samba.org>
Thu, 6 Feb 2014 15:40:46 +0000
(15:40 +0000)
committer
Michael Adam
<obnox@samba.org>
Wed, 12 Feb 2014 20:47:06 +0000
(21:47 +0100)
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>
source3/modules/vfs_default.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_default.c
b/source3/modules/vfs_default.c
index 815dc43e2d955d507f21690d5af89f600490dc15..5c48d04f1c4105b912db984ad9e3949d996678c6 100644
(file)
--- 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;
}