s3/smbd: use correct talloc memory context for tevent subrequests
authorRalph Boehme <slow@samba.org>
Sun, 18 Sep 2016 15:14:37 +0000 (17:14 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 19 Sep 2016 21:25:37 +0000 (23:25 +0200)
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

source3/smbd/server.c

index 97c0fdcad92980a5ea2901f1c509db10b30f3e21..f1e64aca98ed2e3ba1f41b6d2c7c68ec114e9412 100644 (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");