summaryrefslogtreecommitdiff
path: root/obexd/client
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2017-10-05 12:51:38 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2017-10-06 09:43:34 +0300
commitb5fbb08a56aaf391d1393f2efdf349e8fc173cb9 (patch)
tree690dc8134d3532f8c60b0b23eed00dd4e29739d8 /obexd/client
parent53347040ad76de23b72ba024948e82a938ab6ad6 (diff)
downloadbluez-b5fbb08a56aaf391d1393f2efdf349e8fc173cb9.tar.gz
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.
Diffstat (limited to 'obexd/client')
-rw-r--r--obexd/client/bluetooth.c2
1 files changed, 2 insertions, 0 deletions
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);