From 253e449f63487c7738237e51137b5523104c2da3 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Sat, 8 Feb 2014 14:39:35 +0200 Subject: [PATCH] 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 18c91f5..ac42b7d 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -4627,6 +4627,11 @@ static gboolean process_auth_queue(gpointer user_data) if (auth->svc_id > 0) return TRUE; + 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; -- 2.7.4