summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-04-14 18:44:43 +0200
committerAndrew Tridgell <tridge@samba.org>2008-04-14 18:44:43 +0200
commit292ed5d04f9b7442bf878c36be24a46fc0373d9c (patch)
treea2e2ba8b8c3b220fed21013f80893fa1742a4ab9 /source4
parent7361899e80c1001eb7d7c13b12ba72cbc3b758f2 (diff)
downloadsamba-292ed5d04f9b7442bf878c36be24a46fc0373d9c.tar.gz
samba-292ed5d04f9b7442bf878c36be24a46fc0373d9c.tar.bz2
samba-292ed5d04f9b7442bf878c36be24a46fc0373d9c.zip
fixed an unitialised write warning in valgrind
the 'reserved' field was not being initialised before being pushed to the wire (This used to be commit dfe4b5009885c4eeca24569f35b9fc85bfe6346b)
Diffstat (limited to 'source4')
-rw-r--r--source4/ntvfs/ntvfs_generic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/ntvfs/ntvfs_generic.c b/source4/ntvfs/ntvfs_generic.c
index fee3269eaf..01c3a16433 100644
--- a/source4/ntvfs/ntvfs_generic.c
+++ b/source4/ntvfs/ntvfs_generic.c
@@ -209,6 +209,7 @@ static NTSTATUS ntvfs_map_open_finish(struct ntvfs_module_context *ntvfs,
case RAW_OPEN_SMB2:
io->smb2.out.file.ntvfs = io2->generic.out.file.ntvfs;
io->smb2.out.oplock_level = 0;
+ io->smb2.out.reserved = 0;
io->smb2.out.create_action = io2->generic.out.create_action;
io->smb2.out.create_time = io2->generic.out.create_time;
io->smb2.out.access_time = io2->generic.out.access_time;