From ef3bb09db6f6985eac82f4e80259c44be6ca8c20 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 26 Aug 2011 21:14:04 -0700 Subject: RAW_SFILEINFO_RENAME_INFORMATION_SMB2 sends 4 bytes of uninitialized data out on the network. Autobuild-User: Jeremy Allison Autobuild-Date: Sat Aug 27 07:48:30 CEST 2011 on sn-devel-104 --- source4/libcli/raw/rawsetfileinfo.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4') 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, -- cgit