summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-11-02 15:46:49 +0100
committerMichael Adam <obnox@samba.org>2011-11-09 01:02:08 +0100
commit9fe4709a4b4cb4fd5bad6d8c8655e94aa59a03cf (patch)
tree59d874d5986048674e86b053651d1f493f30ac00 /source4/torture
parentb76bd39b6fb0c60dda51b48ad43ce55791e6086e (diff)
downloadsamba-9fe4709a4b4cb4fd5bad6d8c8655e94aa59a03cf.tar.gz
samba-9fe4709a4b4cb4fd5bad6d8c8655e94aa59a03cf.tar.bz2
samba-9fe4709a4b4cb4fd5bad6d8c8655e94aa59a03cf.zip
s4:torture:smb2: fix illegal write/uninitialized data bug in the lease.multibreak test
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smb2/lease.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/smb2/lease.c b/source4/torture/smb2/lease.c
index fc1f7c7d24..a1be4ac1a5 100644
--- a/source4/torture/smb2/lease.c
+++ b/source4/torture/smb2/lease.c
@@ -901,6 +901,7 @@ static bool test_lease_multibreak(struct torture_context *tctx,
w.in.file.handle = h3;
w.in.offset = 0;
w.in.data = data_blob_talloc(mem_ctx, NULL, 4096);
+ memset(w.in.data.data, 'o', w.in.data.length);
status = smb2_write(tree, &w);
CHECK_STATUS(status, NT_STATUS_OK);