From 8c7538039ecee321e6424884558254951587992c Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 26 Oct 2017 13:42:48 +0200 Subject: [PATCH] s3/mdssvc: use correct TALLOC_CTX for deferred slq_destroy_send Don't use the object whose deallocation we're deffering as TALLOC_CTX for the tevent_req, wWe need a long lived memory context here. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13098 --- source3/rpc_server/mdssvc/mdssvc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/rpc_server/mdssvc/mdssvc.c b/source3/rpc_server/mdssvc/mdssvc.c index 9be0cc48877..70d9aa28d53 100644 --- a/source3/rpc_server/mdssvc/mdssvc.c +++ b/source3/rpc_server/mdssvc/mdssvc.c @@ -772,7 +772,7 @@ static void tracker_cursor_cb(GObject *object, SLQ_DEBUG(10, slq, "closed"); g_main_loop_quit(slq->mds_ctx->gmainloop); - req = slq_destroy_send(slq, server_event_context(), &slq); + req = slq_destroy_send(slq->mds_ctx, server_event_context(), &slq); if (req == NULL) { slq->state = SLQ_STATE_ERROR; return; -- 2.13.6