From: Stefan Metzmacher Date: Sat, 20 Dec 2025 01:08:18 +0000 (+0100) Subject: s4:torture/smb2: fix using uninitialized memory in test_lease_dynamic_share() X-Git-Tag: tdb-1.4.15~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc8fe7a0eb625229a51326316bbd51d4b1e35c35;p=thirdparty%2Fsamba.git s4:torture/smb2: fix using uninitialized memory in test_lease_dynamic_share() We left basically the Channel value of the SMB2 write with a high chance of being non 0, which means the server should reject the request as rdma offload is not used. Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke --- diff --git a/source4/torture/smb2/lease.c b/source4/torture/smb2/lease.c index 5ee82033219..481a0b83f39 100644 --- a/source4/torture/smb2/lease.c +++ b/source4/torture/smb2/lease.c @@ -4730,7 +4730,7 @@ static bool test_lease_dynamic_share(struct torture_context *tctx, struct smb2_create io; struct smb2_lease ls1; struct smb2_handle h = {}, h1 = {}, h2 = {}; - struct smb2_write w; + struct smb2_write w = {}; NTSTATUS status; const char *fname = "dynamic_path.dat"; bool ret = true;