diff options
author | Volker Lendecke <vl@samba.org> | 2015-05-22 18:40:25 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2015-05-28 11:13:09 +0200 |
commit | 25fab3ebe9664107d2cd96fbf809a7493908243d (patch) | |
tree | dcd958ac4fecb50620ea233f9d98edf5c1181f76 /source3/lib | |
parent | 9406d09fec2bab28d7cd27d774744ab908dc1e68 (diff) | |
download | samba-25fab3ebe9664107d2cd96fbf809a7493908243d.tar.gz |
messaging: With dgm_ref, don't destroy the dgm ctx
Since we use messaging_dgm_ref, we must rely on that to destroy the dgm
context when the last reference goes.
This is a real bugfix in case we have multiple messaging contexts.
I'm not sure if we should move towards just one single messaging context
per process, just like we have it for the dgm context.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/messages.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 51e88e26419..6cc5275e9e6 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -264,8 +264,6 @@ static int messaging_context_destructor(struct messaging_context *ctx) { unsigned i; - messaging_dgm_destroy(); - for (i=0; i<ctx->num_new_waiters; i++) { if (ctx->new_waiters[i] != NULL) { tevent_req_set_cleanup_fn(ctx->new_waiters[i], NULL); |