summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-12 13:53:26 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-12 14:35:43 +0100
commit16cfc7243b733e3dd55595b3c29b052aaf7328ce (patch)
tree3d0a81b941bce54e6093963f19f115b0560ce32d /source3/smbd
parent68a7be6ab4caf787a0cdd857c9e069210ee5a5bf (diff)
downloadsamba-16cfc7243b733e3dd55595b3c29b052aaf7328ce.tar.gz
samba-16cfc7243b733e3dd55595b3c29b052aaf7328ce.tar.bz2
samba-16cfc7243b733e3dd55595b3c29b052aaf7328ce.zip
s3:smbd/process: avoid using server_event_context() for smbd_deferred_open_timer events
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c20
1 files changed, 10 insertions, 10 deletions
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, "