summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/oplock.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/smb2/oplock.c')
-rw-r--r--source4/torture/smb2/oplock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/torture/smb2/oplock.c b/source4/torture/smb2/oplock.c
index 5b12e135b7..d489943986 100644
--- a/source4/torture/smb2/oplock.c
+++ b/source4/torture/smb2/oplock.c
@@ -3582,8 +3582,7 @@ bool test_smb2_hold_oplock(struct torture_context *tctx,
struct smb2_tree *tree)
{
struct torture_context *mem_ctx = talloc_new(tctx);
- struct tevent_context *ev =
- (struct tevent_context *)tree->session->transport->socket->event.ctx;
+ struct tevent_context *ev = tctx->ev;
int i;
struct smb2_handle h;
NTSTATUS status;