From 9d66ad8c30bd962758143a09d07034bc4f861757 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 20 Feb 2012 16:25:42 +0100 Subject: 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 Autobuild-Date: Mon Feb 20 18:34:48 CET 2012 on sn-devel-104 --- source4/torture/smb2/durable_open.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/torture') 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); -- cgit