fixed a bug in message handling for code the change notify code
authorAndrew Tridgell <tridge@samba.org>
Tue, 10 Mar 2009 05:45:45 +0000 (16:45 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 10 Mar 2009 05:45:45 +0000 (16:45 +1100)
commit6f1f9f6d8d3d25ab6ed5467b81f1eed70e962d27
tree245268daad2c7b69736127e3ab2f11865803391b
parenta67bc41d6bc25974e6aa6d864d5265d07c890413
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
source3/lib/messages.c