From 16cfc7243b733e3dd55595b3c29b052aaf7328ce Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 12 Dec 2011 13:53:26 +0100 Subject: s3:smbd/process: avoid using server_event_context() for smbd_deferred_open_timer events metze --- source3/smbd/process.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'source3') diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 0e15e32d35..d037fae779 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -648,11 +648,11 @@ static bool push_queued_message(struct smb_request *req, } } - msg->te = event_add_timed(server_event_context(), - msg, - end_time, - smbd_deferred_open_timer, - msg); + msg->te = tevent_add_timer(msg->sconn->ev_ctx, + msg, + end_time, + smbd_deferred_open_timer, + msg); if (!msg->te) { DEBUG(0,("push_message: event_add_timed failed\n")); TALLOC_FREE(msg); @@ -735,11 +735,11 @@ void schedule_deferred_open_message_smb(struct smbd_server_connection *sconn, "scheduling mid %llu\n", (unsigned long long)mid )); - te = event_add_timed(server_event_context(), - pml, - timeval_zero(), - smbd_deferred_open_timer, - pml); + te = tevent_add_timer(pml->sconn->ev_ctx, + pml, + timeval_zero(), + smbd_deferred_open_timer, + pml); if (!te) { DEBUG(10,("schedule_deferred_open_message_smb: " "event_add_timed() failed, " -- cgit