mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
le_device_db_tlv: check entry index
This commit is contained in:
parent
21c2455c51
commit
db5aaf2afe
@ -180,6 +180,9 @@ int le_device_db_max_count(void){
|
||||
}
|
||||
|
||||
void le_device_db_remove(int index){
|
||||
btstack_assert(index >= 0);
|
||||
btstack_assert(index < le_device_db_max_count());
|
||||
|
||||
// check if entry exists
|
||||
if (entry_map[index] == 0u) return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user