summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-database.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-02-26 20:57:42 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-02-26 20:57:42 +0000
commit04a18d65207a17e4005c0c7d71c7aa01be1659fb (patch)
tree73c90b366976515b9ae9d0931795c56e69251a08 /hcid/dbus-database.c
parentd9aa4a2058eace37d5c2d15508b4c4d9962c2bb5 (diff)
Implement the trust methods properly
Diffstat (limited to 'hcid/dbus-database.c')
-rw-r--r--hcid/dbus-database.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hcid/dbus-database.c b/hcid/dbus-database.c
index 86053915..755de673 100644
--- a/hcid/dbus-database.c
+++ b/hcid/dbus-database.c
@@ -339,8 +339,7 @@ static DBusHandlerResult request_authorization(DBusConnection *conn,
if (!service)
return error_not_authorized(conn, msg);
- if (g_slist_find_custom(service->trusted_devices, address,
- (GCompareFunc) strcasecmp)) {
+ if (read_trust(address, service->ident)) {
DBusMessage *reply;
reply = dbus_message_new_method_return(msg);