summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-02-23 09:16:37 +0100
committerMichael Adam <obnox@samba.org>2012-03-03 17:03:06 +0100
commit579bb0a9342a3da4b1be3fb7b25233327f1e4f75 (patch)
treeeb2b2a3ed4d1cb2546e839b9d72be8098283e270 /source4/torture/smb2
parent87fc8c0f648826b1db0570ba0aa5f03697248569 (diff)
downloadsamba-579bb0a9342a3da4b1be3fb7b25233327f1e4f75.tar.gz
samba-579bb0a9342a3da4b1be3fb7b25233327f1e4f75.tar.bz2
samba-579bb0a9342a3da4b1be3fb7b25233327f1e4f75.zip
s4:torture:smb2:durable_open: remove unused lease variables in the open-oplock test
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r--source4/torture/smb2/durable_open.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source4/torture/smb2/durable_open.c b/source4/torture/smb2/durable_open.c
index d667861804..a75027c007 100644
--- a/source4/torture/smb2/durable_open.c
+++ b/source4/torture/smb2/durable_open.c
@@ -1164,18 +1164,15 @@ bool test_durable_open_open_oplock(struct torture_context *tctx,
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io1, io2;
- struct smb2_lease ls;
struct smb2_handle h1, h2;
NTSTATUS status;
char fname[256];
bool ret = true;
- uint64_t lease;
/*
* Choose a random name and random lease in case the state is left a
* little funky.
*/
- lease = random();
snprintf(fname, 256, "durable_open_open_oplock_%s.dat",
generate_random_str(tctx, 8));
@@ -1215,7 +1212,6 @@ bool test_durable_open_open_oplock(struct torture_context *tctx,
ZERO_STRUCT(io1);
io1.in.fname = fname;
io1.in.durable_handle = &h1;
- io1.in.lease_request = &ls;
status = smb2_create(tree1, mem_ctx, &io1);
CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_NOT_FOUND);