s4:torture:smb2:durable_open: use the correct tree in the final close call
authorMichael Adam <obnox@samba.org>
Thu, 23 Feb 2012 14:35:15 +0000 (15:35 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 27 Feb 2012 01:08:27 +0000 (02:08 +0100)
source4/torture/smb2/durable_open.c

index 6ef5a321e9610489ec1f2a987b4e7526a3ba2fd0..d4dff5e08c176121aca1a2b3a70b5a11ebb25d9d 100644 (file)
@@ -590,7 +590,7 @@ bool test_durable_open_reopen4(struct torture_context *tctx,
 
 done:
        if (h != NULL) {
-               smb2_util_close(tree, *h);
+               smb2_util_close(tree2, *h);
        }
 
        smb2_util_unlink(tree2, fname);