diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-10 23:11:10 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-10 23:11:10 +0000 |
commit | f820cf99c1cdb58e270fdf92389fea0413c1484e (patch) | |
tree | 637e74015d95f926e8dbb95af4b07c376c09a781 /src/libsystemd-bus | |
parent | a82cafb97bf841deded572cd4ade039853cbdc4e (diff) |
bus: do not dispatch incoming method calls that are broacasted to vtables
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r-- | src/libsystemd-bus/bus-objects.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-objects.c b/src/libsystemd-bus/bus-objects.c index 8ffda2f95d..204e21d5d8 100644 --- a/src/libsystemd-bus/bus-objects.c +++ b/src/libsystemd-bus/bus-objects.c @@ -1284,6 +1284,10 @@ int bus_process_object(sd_bus *bus, sd_bus_message *m) { if (hashmap_isempty(bus->nodes)) return 0; + /* Never respond to broadcast messages */ + if (bus->bus_client && !m->destination) + return 0; + assert(m->path); assert(m->member); |