From ee8c910888bc582ed844d5b2ed9a5c8707070476 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Sat, 8 Feb 2014 14:39:35 +0200 Subject: core/adapter: Check if service is blocked before authorizing This add a call to device_is_service_blocked before authorizing a connection. --- src/adapter.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/adapter.c b/src/adapter.c index eaf1f5efc..c94de6e96 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -5825,6 +5825,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; -- cgit v1.2.1