Diff between fcab4dff5e56ad6b726ea5aca944d7e483b6b26f and 6adb76f05ead65cfecc817beb083a7b0c0ae33e6

Changed Files

File Additions Deletions Status
src/device.c +1 -1 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index d4d649b..bc78fa7 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)