Bluetooth: Audio: Add conn check for MCC notify handler
Add a NULL check for the conn pointer. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
5dfea31e83
commit
b734487eaa
1 changed files with 4 additions and 0 deletions
|
@ -911,6 +911,10 @@ static uint8_t mcs_notify_handler(struct bt_conn *conn,
|
|||
{
|
||||
uint16_t handle = params->value_handle;
|
||||
|
||||
if (conn == NULL) {
|
||||
return BT_GATT_ITER_CONTINUE;
|
||||
}
|
||||
|
||||
BT_DBG("Notification, handle: %d", handle);
|
||||
|
||||
if (data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue