Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0b524f4 authored by Chris Manton's avatar Chris Manton
Browse files

Check after shutdown for null security device list

Bug: 218608167
Tag: #refactor
Test: gd/cert/run
Change-Id: I4f9d755c002b97528d0e9f080a0667f1e0a965e9
parent c0aa1b09
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -195,6 +195,8 @@ tBTM_SEC_DEV_REC* btm_ble_resolve_random_addr(const RawAddress& random_bda) {
/** Find the security record whose LE identity address is matching */
static tBTM_SEC_DEV_REC* btm_find_dev_by_identity_addr(
    const RawAddress& bd_addr, uint8_t addr_type) {
  if (btm_cb.sec_dev_rec == nullptr) return nullptr;

  list_node_t* end = list_end(btm_cb.sec_dev_rec);
  for (list_node_t* node = list_begin(btm_cb.sec_dev_rec); node != end;
       node = list_next(node)) {