From b5fbb08a56aaf391d1393f2efdf349e8fc173cb9 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 5 Oct 2017 12:51:38 +0300 Subject: [PATCH] obex: Fix always searching UUID using 128 bit format When discovering the SDP records the code should attempt to use 16 bit format whenever possible. --- obexd/client/bluetooth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/obexd/client/bluetooth.c b/obexd/client/bluetooth.c index e35124a0c..0c043e0ac 100644 --- a/obexd/client/bluetooth.c +++ b/obexd/client/bluetooth.c @@ -306,6 +306,8 @@ static gboolean service_callback(GIOChannel *io, GIOCondition cond, if (bt_string2uuid(&uuid, session->service) < 0) goto failed; + sdp_uuid128_to_uuid(&uuid); + search = sdp_list_append(NULL, &uuid); attrid = sdp_list_append(NULL, &range); -- 2.47.3