summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2015-05-20 13:34:46 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-06-18 16:44:07 +0200
commitc5184e9eeb0fd0bc4749677d2f74256515199b46 (patch)
treeca8a8808fbf9ce0a83e3bd662380c0c16684d0cb
parentd3c82d0170d6d7407549afdadd08aa7e11aeb9a2 (diff)
downloadsssd-c5184e9eeb0fd0bc4749677d2f74256515199b46.tar.gz
sssd-c5184e9eeb0fd0bc4749677d2f74256515199b46.tar.xz
sssd-c5184e9eeb0fd0bc4749677d2f74256515199b46.zip
SBUS: Use default GetAll invoker if none is set
It is alright for an interface to not have any GetAll invoker set if it doesn't have any properties, but we still want to return an empty message. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
-rw-r--r--src/sbus/sssd_dbus_properties.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sbus/sssd_dbus_properties.c b/src/sbus/sssd_dbus_properties.c
index 25ea446d1..6b4ca74ba 100644
--- a/src/sbus/sssd_dbus_properties.c
+++ b/src/sbus/sssd_dbus_properties.c
@@ -332,7 +332,14 @@ static int sbus_properties_get_all(struct sbus_request *sbus_req, void *pvt)
goto fail;
}
- iface->vtable->meta->invoker_get_all(sbus_subreq);
+ if (iface->vtable->meta->invoker_get_all == NULL) {
+ DEBUG(SSSDBG_TRACE_FUNC, "No get all invoker set,"
+ "using the default one\n");
+
+ sbus_invoke_get_all(sbus_req);
+ } else {
+ iface->vtable->meta->invoker_get_all(sbus_subreq);
+ }
return EOK;