summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-security.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/dbus-security.c')
-rw-r--r--hcid/dbus-security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c
index 26372f7f..5e0fd6c9 100644
--- a/hcid/dbus-security.c
+++ b/hcid/dbus-security.c
@@ -792,7 +792,7 @@ static DBusHandlerResult authorize_service(DBusConnection *conn,
if (!service)
return error_service_does_not_exist(conn, msg);
- if (strcmp(dbus_message_get_sender(msg), service->id))
+ if (strcmp(dbus_message_get_sender(msg), service->bus_name))
return error_rejected(conn, msg);
/* Check it is a trusted device */
@@ -870,7 +870,7 @@ static DBusHandlerResult cancel_authorization_process(DBusConnection *conn,
if (!service)
return error_service_does_not_exist(conn, msg);
- if (strcmp(dbus_message_get_sender(msg), service->id))
+ if (strcmp(dbus_message_get_sender(msg), service->bus_name))
return error_not_authorized(conn, msg);
if (!default_auth_agent)