chiark / gitweb /
bus: append bloom-filter to all signals
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 8 Jan 2015 23:53:00 +0000 (00:53 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 8 Jan 2015 23:53:30 +0000 (00:53 +0100)
Make sure to append bloom-filters to all signal-messages, not only
broadcasts.

src/libsystemd/sd-bus/bus-kernel.c

index 7c946e6..e84e14b 100644 (file)
@@ -357,7 +357,7 @@ static int bus_message_setup_kmsg(sd_bus *b, sd_bus_message *m) {
                 append_payload_vec(&d, part->data, part->size);
         }
 
-        if (m->kdbus->dst_id == KDBUS_DST_ID_BROADCAST) {
+        if (m->header->type == SD_BUS_MESSAGE_SIGNAL) {
                 struct kdbus_bloom_filter *bloom;
 
                 bloom = append_bloom(&d, m->bus->bloom_size);