Bluetooth: BAP: Broadcast start add missing NULL check for adv
Added missing NULL check for the advertising set pointer. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
a638223df3
commit
afd4161a84
1 changed files with 5 additions and 0 deletions
|
@ -943,6 +943,11 @@ int bt_bap_broadcast_source_start(struct bt_bap_broadcast_source *source, struct
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
CHECKIF(adv == NULL) {
|
||||
LOG_DBG("adv is NULL");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
broadcast_state = broadcast_source_get_state(source);
|
||||
if (broadcast_source_get_state(source) != BT_BAP_EP_STATE_QOS_CONFIGURED) {
|
||||
LOG_DBG("Broadcast source invalid state: %u", broadcast_state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue