summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-02-23 15:49:51 +0100
committerMichael Adam <obnox@samba.org>2012-02-27 03:44:16 +0100
commit8e947f0f5d56969527a40d8148fb773e8c69ea84 (patch)
tree058783e83ae8ca8f3acd496eea1caf4c94076ffb
parent6deec81b8e89e7a525925952159cbb45e5d28647 (diff)
downloadsamba-8e947f0f5d56969527a40d8148fb773e8c69ea84.tar.gz
samba-8e947f0f5d56969527a40d8148fb773e8c69ea84.tar.bz2
samba-8e947f0f5d56969527a40d8148fb773e8c69ea84.zip
s4:torture:smb2:durable-open: prevent using a disconnected handle in reopen4
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Feb 27 03:44:16 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 22c0176025..3d4744d1de 100644
--- a/source4/torture/smb2/durable_open.c
+++ b/source4/torture/smb2/durable_open.c
@@ -588,6 +588,7 @@ bool test_durable_open_reopen4(struct torture_context *tctx,
ZERO_STRUCT(io2);
io2.in.fname = fname;
io2.in.durable_handle = h;
+ h = NULL;
status = smb2_create(tree2, mem_ctx, &io2);
CHECK_STATUS(status, NT_STATUS_OK);