]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-bus/bus-objects.c
bus: fix error leak in bus_node_exists()
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 17 Sep 2014 08:32:49 +0000 (10:32 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 17 Sep 2014 09:01:56 +0000 (11:01 +0200)
commitff02f101cb7db516bf1732bb74c42cb3b6259af1
treeeebdd506b883a2009774ea7c99bfbfbff5d73331
parent943c3f94e2f8b8b35ef6a40220bbe4c06510930c
bus: fix error leak in bus_node_exists()

If we call into user callbacks, we must always propagate possible errors.
Fix bus_node_exists() to do that and adjust the callers (which already
partially propagated the error).

Also speed up that function by first checking for registered enumerators
and/or object-managers.
src/libsystemd/sd-bus/bus-objects.c