summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--input/manager.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/input/manager.c b/input/manager.c
index 9bf9f8a8..80c9b6b1 100644
--- a/input/manager.c
+++ b/input/manager.c
@@ -89,6 +89,12 @@ static int headset_probe(struct btd_device *device, GSList *uuids)
DBG("path %s", path);
+ if (!g_slist_find_custom(uuids, HSP_HS_UUID,
+ (GCompareFunc) strcasecmp))
+ return -EINVAL;
+
+ record = btd_device_get_record(device, uuids->data);
+
if (!record || sdp_get_access_protos(record, &protos) < 0) {
error("Invalid record");
return -EINVAL;