summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-02-21 18:00:30 +0100
committerMichael Adam <obnox@samba.org>2012-02-21 18:11:06 +0100
commita36e25716008ad4c90efd8e0ba21522365efce6c (patch)
treeb82d23014bdf504a01b8c8ad2a9630021ac9bf7e /source4/torture/smb2
parent65da3b74fab684bf6521735700a57a0ca2aa68c8 (diff)
downloadsamba-a36e25716008ad4c90efd8e0ba21522365efce6c.tar.gz
samba-a36e25716008ad4c90efd8e0ba21522365efce6c.tar.bz2
samba-a36e25716008ad4c90efd8e0ba21522365efce6c.zip
s4:torture:smb2: move some initialization and call to smb2_create together in durable-open.open test
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r--source4/torture/smb2/durable_open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/smb2/durable_open.c b/source4/torture/smb2/durable_open.c
index 29825e0f84..2d554a395d 100644
--- a/source4/torture/smb2/durable_open.c
+++ b/source4/torture/smb2/durable_open.c
@@ -1009,8 +1009,6 @@ bool test_durable_open_open(struct torture_context *tctx,
smb2_util_lease_state("RH"));
io1.in.durable_open = true;
- smb2_oplock_create(&io2, fname, SMB2_OPLOCK_LEVEL_NONE);
-
status = smb2_create(tree1, mem_ctx, &io1);
CHECK_STATUS(status, NT_STATUS_OK);
h1 = io1.out.file.handle;
@@ -1028,6 +1026,8 @@ bool test_durable_open_open(struct torture_context *tctx,
tree1 = NULL;
/* Open the file in tree2 */
+ smb2_oplock_create(&io2, fname, SMB2_OPLOCK_LEVEL_NONE);
+
status = smb2_create(tree2, mem_ctx, &io2);
CHECK_STATUS(status, NT_STATUS_OK);
h2 = io2.out.file.handle;