s4:torture: fix closure of test directory handle
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>
Thu, 12 Sep 2019 09:18:51 +0000 (11:18 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 12 Sep 2019 16:16:28 +0000 (16:16 +0000)
Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/smb2/create.c

index f3eca493e4bafc35e292fd7f0c0cc0054e747e0f..e35bf179ba5b705ac403870603aa4a1cdb80eda6 100644 (file)
@@ -1138,7 +1138,7 @@ static bool test_smb2_open_for_delete(struct torture_context *tctx,
 
        smb2_util_unlink(tree, fname);
 
-       smb2_util_close(tree, h1);
+       smb2_util_close(tree, h);
        smb2_util_unlink(tree, fname);
        smb2_deltree(tree, DNAME);