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:
Emil Gydesen 2021-12-03 16:32:08 +01:00 committed by Carles Cufí
commit b734487eaa

View file

@ -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) {