summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r--hcid/dbus-service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c
index 6ff18f2e..d60cc6f8 100644
--- a/hcid/dbus-service.c
+++ b/hcid/dbus-service.c
@@ -448,6 +448,9 @@ static DBusHandlerResult is_external(DBusConnection *conn,
struct service *service = data;
DBusMessage *reply;
+ if (!hcid_dbus_use_experimental())
+ return error_unknown_method(conn, msg);
+
reply = dbus_message_new_method_return(msg);
if (!reply)
return DBUS_HANDLER_RESULT_NEED_MEMORY;