connection: correctly filter messages on name takeover
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 23 Oct 2014 10:53:41 +0000 (12:53 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 23 Oct 2014 10:53:41 +0000 (12:53 +0200)
commit2036b0b5e4d82f5228de51be78b426eaed0d6e89
tree68f534182008e5b866f0a3c66600cdc6cbb5e75a
parent422f9faf7ad9dc849b28a4a765fd44781025dc13
connection: correctly filter messages on name takeover

If a name is taken over by an activator, we move messages that were
targetted at the this exact name over. However, we must make sure to leave
all other messages correctly queued on the source, so it can continue
using other names it might posess.

This fixes the filtering we apply on the messages itself, to no longer
leak them. Furthermore, it also applies proper filtering to the conn_reply
objects, so only matching objects are moved.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
connection.c