Bluetooth: Mesh: Fix cdb key update iteration
Fixes copy/paste error taking the size of the the wrong array. Signed-off-by: Trond Einar Snekvik <Trond.Einar.Snekvik@nordicsemi.no>
This commit is contained in:
parent
46330f13ed
commit
2835da8194
1 changed files with 1 additions and 1 deletions
|
@ -2299,7 +2299,7 @@ static struct key_update *cdb_key_update_find(bool app_key, u16_t key_idx,
|
|||
match = NULL;
|
||||
*free_slot = NULL;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(key_updates); i++) {
|
||||
for (i = 0; i < ARRAY_SIZE(cdb_key_updates); i++) {
|
||||
struct key_update *update = &cdb_key_updates[i];
|
||||
|
||||
if (!update->valid) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue