Diff between 1cd6c874c2712f0a51058f6a5fc132f01a6f4255 and d3971990d9268afd3628996876c756bf15849c56

Changed Files

File Additions Deletions Status
profiles/audio/bap.c +2 -1 modified

Full Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 864761d..007e19f 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -1390,7 +1390,8 @@ static bool pac_found_bcast(struct bt_bap_pac *lpac, struct bt_bap_pac *rpac,
 	}
 
 	/* Mark the device as connetable if an Endpoint is registered */
-	btd_device_set_connectable(data->device, true);
+	if (data->device)
+		btd_device_set_connectable(data->device, true);
 
 	return true;
 }