From 6adb76f05ead65cfecc817beb083a7b0c0ae33e6 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 18 Nov 2012 23:16:28 +0200 Subject: [PATCH] core: Fix checking profiles with no local_uuid --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index d4d649bb0..bc78fa7ec 100644 --- a/src/device.c +++ b/src/device.c @@ -1283,7 +1283,7 @@ static struct btd_profile *find_connectable_profile(struct btd_device *dev, for (l = dev->profiles; l != NULL; l = g_slist_next(l)) { struct btd_profile *p = l->data; - if (!p->connect) + if (!p->connect || !p->local_uuid) continue; if (strcasecmp(uuid, p->local_uuid) == 0) -- 2.47.3