1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

s3/smbd: use correct talloc memory context for tevent subrequests

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Sep 19 23:25:37 CEST 2016 on sn-devel-144
This commit is contained in:
Ralph Boehme 2016-09-18 17:14:37 +02:00
parent 28fad1c59d
commit 70e2418975

View File

@ -456,7 +456,7 @@ static struct tevent_req *notifyd_init_send(struct tevent_context *ev,
.ppid = ppid
};
subreq = tevent_wakeup_send(req, ev, tevent_timeval_current_ofs(1, 0));
subreq = tevent_wakeup_send(state, ev, tevent_timeval_current_ofs(1, 0));
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
}
@ -491,7 +491,7 @@ static void notifyd_init_trigger(struct tevent_req *subreq)
DBG_NOTICE("notifyd startup failed, rescheduling\n");
subreq = tevent_wakeup_send(req, state->ev,
subreq = tevent_wakeup_send(state, state->ev,
tevent_timeval_current_ofs(1, 0));
if (tevent_req_nomem(subreq, req)) {
DBG_ERR("scheduling notifyd restart failed, giving up\n");
@ -667,7 +667,7 @@ static struct tevent_req *cleanupd_init_send(struct tevent_context *ev,
.ppid = ppid
};
subreq = tevent_wakeup_send(req, ev, tevent_timeval_current_ofs(0, 0));
subreq = tevent_wakeup_send(state, ev, tevent_timeval_current_ofs(0, 0));
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
}
@ -702,7 +702,7 @@ static void cleanupd_init_trigger(struct tevent_req *subreq)
DBG_NOTICE("cleanupd startup failed, rescheduling\n");
subreq = tevent_wakeup_send(req, state->ev,
subreq = tevent_wakeup_send(state, state->ev,
tevent_timeval_current_ofs(1, 0));
if (tevent_req_nomem(subreq, req)) {
DBG_ERR("scheduling cleanupd restart failed, giving up\n");