From 378c21a72a2d4727b10fd871c43d61792ada0625 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 22 Sep 2011 21:30:13 +0200 Subject: s4:torture/smb2: use tctx->ev as event context for polling metze --- source4/torture/smb2/oplock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/torture/smb2/oplock.c') 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; -- cgit