[PATCH] s3/smbd: use correct talloc memory context for tevent subrequests
Ralph Böhme
rb at sernet.de
Mon Sep 19 00:54:23 UTC 2016
Hi!
First patch from the Plugfest! :)
Already reviewed by metze so I'm going to push later if noone objects.
-slow
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt@sernet.de
-------------- next part --------------
From d54812078aa083a119dc638f9b91ffa34ca850f1 Mon Sep 17 00:00:00 2001
From: Ralph Boehme <slow at samba.org>
Date: Sun, 18 Sep 2016 17:14:37 +0200
Subject: [PATCH] s3/smbd: use correct talloc memory context for tevent
subrequests
Signed-off-by: Ralph Boehme <slow at samba.org>
Reviewed-by: Stefan Metzmacher <metze at samba.org>
---
source3/smbd/server.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 97c0fdc..f1e64ac 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -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");
--
2.7.4
More information about the samba-technical
mailing list