Diff between 770ad5614e7e8074133e6f563495ce4822f63fe4 and 2a3e935f3f652f2b625af72d2c9abda64d742c28
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 078d308..49eb8d0 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -4763,7 +4763,7 @@ struct bt_bap_stream *bt_bap_stream_new(struct bt_bap *bap,
return NULL;
bt_bap_foreach_pac(bap, type, match_pac, &match);
- if (!match.lpac)
+ if ((!match.lpac) || (!lpac))
return NULL;
if (!match.rpac && (lpac->type != BT_BAP_BCAST_SOURCE))
return NULL;