summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-08-26 21:14:04 -0700
committerJeremy Allison <jra@samba.org>2011-08-27 07:48:29 +0200
commitef3bb09db6f6985eac82f4e80259c44be6ca8c20 (patch)
tree31f21fb01a863e2229653777292cb566198ca552 /source4
parented058f4dc3e059967f3c0538bc220866e9c63588 (diff)
downloadsamba-ef3bb09db6f6985eac82f4e80259c44be6ca8c20.tar.gz
samba-ef3bb09db6f6985eac82f4e80259c44be6ca8c20.tar.bz2
samba-ef3bb09db6f6985eac82f4e80259c44be6ca8c20.zip
RAW_SFILEINFO_RENAME_INFORMATION_SMB2 sends 4 bytes of uninitialized data out on the network.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Aug 27 07:48:30 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/raw/rawsetfileinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/libcli/raw/rawsetfileinfo.c b/source4/libcli/raw/rawsetfileinfo.c
index ff36d50e94..fec99d30b9 100644
--- a/source4/libcli/raw/rawsetfileinfo.c
+++ b/source4/libcli/raw/rawsetfileinfo.c
@@ -79,6 +79,7 @@ bool smb_raw_setfileinfo_passthru(TALLOC_CTX *mem_ctx,
case RAW_SFILEINFO_RENAME_INFORMATION_SMB2:
NEED_BLOB(20);
SIVAL(blob->data, 0, parms->rename_information.in.overwrite);
+ SIVAL(blob->data, 4, 0);
SBVAL(blob->data, 8, parms->rename_information.in.root_fid);
len = smbcli_blob_append_string(NULL, mem_ctx, blob,
parms->rename_information.in.new_name,