summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-database.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/dbus-database.c')
-rw-r--r--hcid/dbus-database.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/dbus-database.c b/hcid/dbus-database.c
index 2f904956..8dd327d1 100644
--- a/hcid/dbus-database.c
+++ b/hcid/dbus-database.c
@@ -337,7 +337,7 @@ static DBusHandlerResult register_service(DBusConnection *conn,
sender = dbus_message_get_sender(msg);
- if (service_register(sender, ident, name, desc) < 0)
+ if (service_register(conn, sender, ident, name, desc) < 0)
return error_failed(conn, msg, EIO);
reply = dbus_message_new_method_return(msg);
@@ -367,7 +367,7 @@ static DBusHandlerResult unregister_service(DBusConnection *conn,
if (!service->external || strcmp(sender, service->bus_name))
return error_not_authorized(conn, msg);
- if (service_unregister(service) < 0)
+ if (service_unregister(conn, service) < 0)
return error_failed(conn, msg, EIO);
reply = dbus_message_new_method_return(msg);