s4:torture:smb2: invalidate the handle after the connection has been killed
authorMichael Adam <obnox@samba.org>
Mon, 20 Feb 2012 15:25:42 +0000 (16:25 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 20 Feb 2012 17:34:48 +0000 (18:34 +0100)
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

source4/torture/smb2/durable_open.c

index 4a2a0b594bb0a03bbf75c8579455e6bcb1f26e23..f54e41cab21b39f859ffda02ff5987bcac8eca72 100644 (file)
@@ -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);