1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 01:27:11 +03:00

bus: do not dispatch incoming method calls that are broacasted to vtables

This commit is contained in:
Lennart Poettering 2013-12-10 23:11:10 +00:00
parent a82cafb97b
commit f820cf99c1

View File

@ -1284,6 +1284,10 @@ int bus_process_object(sd_bus *bus, sd_bus_message *m) {
if (hashmap_isempty(bus->nodes)) if (hashmap_isempty(bus->nodes))
return 0; return 0;
/* Never respond to broadcast messages */
if (bus->bus_client && !m->destination)
return 0;
assert(m->path); assert(m->path);
assert(m->member); assert(m->member);