winbind: winbind_messaging_context -> server_messaging_context
commitbbe5614e312109834a61a1c2f9f1ad501b351900
authorVolker Lendecke <vl@samba.org>
Fri, 17 Nov 2017 10:42:34 +0000 (17 11:42 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 22 Nov 2017 11:42:18 +0000 (22 12:42 +0100)
treee44bea39d2788e15f8c8b1d425f5283a673cf1c6
parent3aaa48c8c3f702fb9a72df967ae231f409d5c3cf
winbind: winbind_messaging_context -> server_messaging_context

Don't use winbind_messaging_context anymore.

This fixes a bug analysed by Peter Somogyi <PSOMOGYI@hu.ibm.com>: If a
parent winbind forks, it only called reinit_after_fork on
winbind_messaging_context. On the other hand, deep in dbwrap_open we use
server_messaging_context(). This is not reinitialized by
winbind_reinit_after fork, so the parent and child share a ctdb
connection. This is invalid, because replies from ctdb end up in the
wrong process.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13150

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit d8a01d09c13728f36107f6eb94ecb7653706a4db)
source3/winbindd/winbindd.c
source3/winbindd/winbindd_cm.c
source3/winbindd/winbindd_dual.c
source3/winbindd/winbindd_dual_srv.c