]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture/smb2: fix using uninitialized memory in test_lease_dynamic_share()
authorStefan Metzmacher <metze@samba.org>
Sat, 20 Dec 2025 01:08:18 +0000 (02:08 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 16 Jan 2026 15:47:31 +0000 (15:47 +0000)
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 <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/torture/smb2/lease.c

index 5ee82033219fccc538923d9f46f5979da41d6c72..481a0b83f3943c5f15db88bf4281704b189a8940 100644 (file)
@@ -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;