Loading system/stack/btm/btm_sec.cc +8 −5 Original line number Original line Diff line number Diff line Loading @@ -4310,12 +4310,15 @@ void btm_sec_connected(const RawAddress& bda, uint16_t handle, uint8_t status, } } } } if (!addr_matched) { /* p_auth_complete_callback might have freed the p_dev_rec, ensure it exists /* Don't callback unless this Connection-Complete-failure event has the * before accessing */ * same mac address as the bonding device */ p_dev_rec = btm_find_dev(bda); if (!p_dev_rec) { /* Don't callback when device security record was removed */ VLOG(1) << __func__ VLOG(1) << __func__ << ": Different mac addresses: pairing_bda=" << btm_cb.pairing_bda << ": device security record associated with this bda has been " << ", bda=" << bda << ", do not callback"; "removed! bda=" << bda << ", do not callback!"; return; return; } } Loading Loading
system/stack/btm/btm_sec.cc +8 −5 Original line number Original line Diff line number Diff line Loading @@ -4310,12 +4310,15 @@ void btm_sec_connected(const RawAddress& bda, uint16_t handle, uint8_t status, } } } } if (!addr_matched) { /* p_auth_complete_callback might have freed the p_dev_rec, ensure it exists /* Don't callback unless this Connection-Complete-failure event has the * before accessing */ * same mac address as the bonding device */ p_dev_rec = btm_find_dev(bda); if (!p_dev_rec) { /* Don't callback when device security record was removed */ VLOG(1) << __func__ VLOG(1) << __func__ << ": Different mac addresses: pairing_bda=" << btm_cb.pairing_bda << ": device security record associated with this bda has been " << ", bda=" << bda << ", do not callback"; "removed! bda=" << bda << ", do not callback!"; return; return; } } Loading