From 09044e631d4a5563b11d606b94066cf04a06848a Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Sun, 27 Nov 2011 23:12:06 +0200 Subject: [PATCH] obexd: make use of secure flag for authorization Using secure flag is probably safer here as other services beside OPP may not require security/authorization. --- obexd/plugins/bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/plugins/bluetooth.c b/obexd/plugins/bluetooth.c index c73beb636..613b2a5ca 100644 --- a/obexd/plugins/bluetooth.c +++ b/obexd/plugins/bluetooth.c @@ -479,7 +479,7 @@ static void confirm_event(GIOChannel *io, void *user_data) goto drop; } - if (driver->service != OBEX_OPP) { + if (driver->secure) { if (request_service_authorization(service, io, address) < 0) goto drop; -- 2.47.3