]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbtorture: fix a test rundown
authorRalph Boehme <slow@samba.org>
Thu, 9 Oct 2025 17:31:33 +0000 (19:31 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 27 Nov 2025 09:01:29 +0000 (09:01 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/torture/smb2/lease.c

index ec97ae6b59cba37487aff49604f73cc4d860c508..5b915907523ada2988a809765e4b1f00b0265edc 100644 (file)
@@ -7281,7 +7281,7 @@ done:
                smb2_util_close(tree, h1);
        }
        if (!smb2_util_handle_empty(h2)) {
-               smb2_util_close(tree, h2);
+               smb2_util_close(tree2, h2);
        }
        if (!smb2_util_handle_empty(dirh1)) {
                smb2_util_close(tree, dirh1);