messaging: With dgm_ref, don't destroy the dgm ctx
commit25fab3ebe9664107d2cd96fbf809a7493908243d
authorVolker Lendecke <vl@samba.org>
Fri, 22 May 2015 16:40:25 +0000 (22 18:40 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 28 May 2015 09:13:09 +0000 (28 11:13 +0200)
treedcd958ac4fecb50620ea233f9d98edf5c1181f76
parent9406d09fec2bab28d7cd27d774744ab908dc1e68
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>
source3/lib/messages.c