diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-02-08 14:39:35 +0200 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-08-11 12:29:30 +0100 |
commit | 5f7b79d85ba348d13888dbc3e73728f02d7d2706 (patch) | |
tree | 95d3f0707fc6d1096d13b50f9758f83646aa7422 | |
parent | 59322a555d1e3128aaf263bec8662e0b57236c8f (diff) | |
download | bluez-5f7b79d85ba348d13888dbc3e73728f02d7d2706.tar.gz |
core/adapter: Check if service is blocked before authorizing
This add a call to device_is_service_blocked before authorizing a
connection.
-rw-r--r-- | src/adapter.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c index 65fa34174..8e74f9766 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -5828,6 +5828,11 @@ static gboolean process_auth_queue(gpointer user_data) if (auth->svc_id > 0) return FALSE; + if (device_is_service_blocked(device, auth->uuid)) { + auth->cb(&err, auth->user_data); + goto next; + } + if (device_is_trusted(device) == TRUE) { auth->cb(NULL, auth->user_data); goto next; |