fixed a bug in message handling for code the change notify code
commit676e0d0caf1aac8eb331589c2c5a4ffb0e83b4f4
authorAndrew Tridgell <tridge@samba.org>
Tue, 10 Mar 2009 05:45:45 +0000 (10 16:45 +1100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Mar 2009 10:49:50 +0000 (10 11:49 +0100)
treec888ee3c3532e6a5aeb801374cade33980f33e25
parentcc3237bb192d6f2c7ae9887df28518c011bdac14
fixed a bug in message handling for code the change notify code

The change notify code registered a separate message handler for each
tree connect. This registration uses the global messaging context.

The messaging code would consider a 2nd registration for the same
messaging type as being an 'update' of the handler, rather than a new
handler. It also would only call the first handler in the linked list
for a given message type when dispatching messages.

This patch changes the messaging code to allow for multiple
registrations of the same message type, and allow for multiple calls
to different messaging handler for one incoming message.

This fixes the problem with the test_notify_tcon() test that I
recently committed to the S4 smbtorture
(cherry picked from commit 89e340e09fbdc375c0aa85506add525b8ba5dcd0)
source/lib/messages.c