summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);