summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2011-08-10 23:10:48 -0400
committerAndreas Schneider <asn@samba.org>2011-08-11 14:58:01 +0200
commitb706fd37f6d0e7e66718488d069053687ad0664c (patch)
treea2440046423fca0764fee98637b8d43499c91fca /source3/winbindd
parentcb1af61cb1988931654ad14c787d2493ef629a58 (diff)
downloadsamba-b706fd37f6d0e7e66718488d069053687ad0664c.tar.gz
samba-b706fd37f6d0e7e66718488d069053687ad0664c.tar.bz2
samba-b706fd37f6d0e7e66718488d069053687ad0664c.zip
s3-messaging: Fix messaging classes.
This has been broken since ff0ac5b0 (May 2007). Basically all messages were belonging to the General class except for CTDB messages. This fixed the message_send_all() function to correctly compute the class, and fixes registrations to include all they need to cope with the fact not all messages are of calss general (registrations rotted a bit because as long as FLAG_MSG_GENERAL was defined the process woould receive all messages). Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index 0c07d4b1b6..cb9d70c5f3 100644
--- a/source3/winbindd/winbindd.c
+++ b/source3/winbindd/winbindd.c
@@ -1045,7 +1045,9 @@ void winbindd_register_handlers(void)
/* get broadcast messages */
if (!serverid_register(procid_self(),
- FLAG_MSG_GENERAL|FLAG_MSG_DBWRAP)) {
+ FLAG_MSG_GENERAL |
+ FLAG_MSG_WINBIND |
+ FLAG_MSG_DBWRAP)) {
DEBUG(1, ("Could not register myself in serverid.tdb\n"));
exit(1);
}