Merge branch 'bugfix/ble_mesh_provisioner_check_key_v3.3' into 'release/v3.3'
ble_mesh: Check if appkey exist before deleting it (v3.3) See merge request espressif/esp-idf!8619
This commit is contained in:
commit
5a53e67c7e
1 changed files with 1 additions and 1 deletions
|
@ -1384,7 +1384,7 @@ int bt_mesh_provisioner_local_net_key_delete(u16_t net_idx)
|
|||
/* Delete any app keys bound to this NetKey index */
|
||||
for (j = 0; j < ARRAY_SIZE(bt_mesh.p_app_keys); j++) {
|
||||
struct bt_mesh_app_key *key = bt_mesh.p_app_keys[j];
|
||||
if (key->net_idx == sub->net_idx) {
|
||||
if (key && key->net_idx == sub->net_idx) {
|
||||
bt_mesh_provisioner_local_app_key_delete(key->net_idx, key->app_idx);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue