Diff between 9b29784717f4682ca527c76c81b5ba92ba00c313 and d2a2aabee646c4e95655bc5dc93c323efa5fc588

Changed Files

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

Full Patch

diff --git a/src/shared/bap.c b/src/shared/bap.c
index 36f0b0a..818326f 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -1405,7 +1405,7 @@ static bool match_req(const void *data, const void *match_data)
 
 static struct bt_ascs *bap_get_ascs(struct bt_bap *bap)
 {
-	if (!bap)
+	if (!bap || !bap->rdb)
 		return NULL;
 
 	if (bap->rdb->ascs)