mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-18 05:42:49 +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){
|
void le_device_db_remove(int index){
|
||||||
|
btstack_assert(index >= 0);
|
||||||
|
btstack_assert(index < le_device_db_max_count());
|
||||||
|
|
||||||
// check if entry exists
|
// check if entry exists
|
||||||
if (entry_map[index] == 0u) return;
|
if (entry_map[index] == 0u) return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user