summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-02-20 16:25:42 +0100
committerMichael Adam <obnox@samba.org>2012-02-20 18:34:48 +0100
commit9d66ad8c30bd962758143a09d07034bc4f861757 (patch)
treeadc538614e44d69d22edea4062b4d84e8bd78cda
parent71164cef612d39858827d816b8dda31e5cb598be (diff)
downloadsamba-9d66ad8c30bd962758143a09d07034bc4f861757.tar.gz
samba-9d66ad8c30bd962758143a09d07034bc4f861757.tar.bz2
samba-9d66ad8c30bd962758143a09d07034bc4f861757.zip
s4:torture:smb2: invalidate the handle after the connection has been killed
Not to run into using the old handle with a new tree connect in the error case. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Feb 20 18:34:48 CET 2012 on sn-devel-104
-rw-r--r--source4/torture/smb2/durable_open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/smb2/durable_open.c b/source4/torture/smb2/durable_open.c
index 4a2a0b594b..f54e41cab2 100644
--- a/source4/torture/smb2/durable_open.c
+++ b/source4/torture/smb2/durable_open.c
@@ -423,6 +423,7 @@ bool test_durable_open_reopen2(struct torture_context *tctx,
ZERO_STRUCT(io2);
io2.in.fname = fname;
io2.in.durable_handle = h;
+ h = NULL;
status = smb2_create(tree, mem_ctx, &io2);
CHECK_STATUS(status, NT_STATUS_OK);