diff options
-rw-r--r-- | hcid/dbus-security.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c index 1477c2f4..f854d17c 100644 --- a/hcid/dbus-security.c +++ b/hcid/dbus-security.c @@ -781,6 +781,9 @@ static DBusHandlerResult authorize_service(DBusConnection *conn, if (strcmp(dbus_message_get_sender(msg), sagent->id)) return error_rejected(conn, msg); + if (!default_auth_agent) + return error_auth_agent_does_not_exist(conn, msg); + return call_auth_agent(msg, default_auth_agent, adapter_path, address, service_path, action); } |