diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-28 11:26:05 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-28 11:26:05 +0000 |
commit | 2646a19f46583a0a79b3933d4b2fb2dd3b156386 (patch) | |
tree | 9d36ac56cabdd10f0960bc4f1865c6ef2bf5ad30 /hcid | |
parent | e2827b35575bab20a99a170805a0a59a32fb2c48 (diff) |
Add some better debug logging for failed authoriztion requests
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/dbus-database.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hcid/dbus-database.c b/hcid/dbus-database.c index 29e5b132..16678fda 100644 --- a/hcid/dbus-database.c +++ b/hcid/dbus-database.c @@ -432,8 +432,6 @@ static DBusHandlerResult request_authorization(DBusConnection *conn, gboolean trusted; int adapter_id; - debug("RequestAuthorization"); - if (dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &address, DBUS_TYPE_STRING, &path, DBUS_TYPE_INVALID) == FALSE) return error_invalid_arguments(conn, msg); @@ -441,8 +439,11 @@ static DBusHandlerResult request_authorization(DBusConnection *conn, sender = dbus_message_get_sender(msg); service = search_service(conn, sender); - if (!service) + if (!service) { + debug("Got RequestAuthorization from non-service owner %s", + sender); return error_not_authorized(conn, msg); + } str2ba(address, &bdaddr); adapter_id = hci_for_each_dev(HCI_UP, find_conn, (long) &bdaddr); |