]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture: Cleanup to to use the right name
authorAndreas Schneider <asn@samba.org>
Fri, 14 Nov 2025 09:14:40 +0000 (10:14 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 16 Jun 2026 11:38:33 +0000 (11:38 +0000)
Not a bug, but just use the right union.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/smb2/streams.c

index 5940907cf4c4871de5ff631ded7cc769337faaa4..fc7fba50a897e97c15b8b81b99874d0d743ad6cf 100644 (file)
@@ -452,11 +452,11 @@ static bool test_stream_io(struct torture_context *tctx,
                io.smb2.in.fname = sname1;
                status = smb2_create(tree, mem_ctx, &(io.smb2));
                CHECK_STATUS(status, NT_STATUS_OK);
-               smb2_util_close(tree, io.ntcreatex.out.file.handle);
+               smb2_util_close(tree, io.smb2.out.file.handle);
                io.smb2.in.fname = sname2;
                status = smb2_create(tree, mem_ctx, &(io.smb2));
                CHECK_STATUS(status, NT_STATUS_OK);
-               smb2_util_close(tree, io.ntcreatex.out.file.handle);
+               smb2_util_close(tree, io.smb2.out.file.handle);
                torture_comment(tctx, "(%s) deleting file\n", __location__);
                status = smb2_util_unlink(tree, fname);
                CHECK_STATUS(status, NT_STATUS_OK);