]> git.ipfire.org Git - thirdparty/systemd.git/commit
bus: in bus_foreach_bus() don't bother with api_bus if it is NULL
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Feb 2018 21:44:18 +0000 (22:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 12 Feb 2018 10:34:00 +0000 (11:34 +0100)
commit6edd281cb88e1efc6253b418d03fdbf1d05b0af3
tree55f31bcf361621ff28e0cfaf25b65987087c1bb5
parentdfeff66499e4e116e6debae765410eba9ba46d51
bus: in bus_foreach_bus() don't bother with api_bus if it is NULL

Let's better be safe than sorry, and validate that api_bus is not NULL
before we send messages to it. Of course, strictly speaking this
shouldn't actually be necessary, as the tracker object should not exist
without the bus, but let's be extra sure.
src/core/dbus.c