Diff between 59bf065b6279bd49c505cab50a1d81294a6febbe and b983c31d4a76bb8b90f42099c21ffacf833ab271

Changed Files

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

Full Patch

diff --git a/src/shared/bap.c b/src/shared/bap.c
index 851d6a5..ce8d35f 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -4156,7 +4156,8 @@ bool bt_bap_attach(struct bt_bap *bap, struct bt_gatt_client *client)
 	queue_foreach(bap_cbs, bap_attached, bap);
 
 	if (!client) {
-		bap_attach_att(bap, bap->att);
+		if (bap->att)
+			bap_attach_att(bap, bap->att);
 		return true;
 	}