From 9fe4709a4b4cb4fd5bad6d8c8655e94aa59a03cf Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 2 Nov 2011 15:46:49 +0100 Subject: s4:torture:smb2: fix illegal write/uninitialized data bug in the lease.multibreak test --- source4/torture/smb2/lease.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit