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

Commit 722192c9 authored by Archie Pusaka's avatar Archie Pusaka
Browse files

Floss: Fix bta_dm_remote_name_cmpl null pointer crash

Bug: 285807216
Test: None
Change-Id: Ide25a2e3c09a6cb00334f8ebc94e57fc54cf1a52
parent 9e9b9300
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1157,7 +1157,7 @@ void bta_dm_remote_name_cmpl(const tBTA_DM_MSG* p_data) {
                     PRIVATE_NAME(remote_name_msg.bd_name)));

  tBTM_INQ_INFO* p_btm_inq_info = BTM_InqDbRead(remote_name_msg.bd_addr);
  if (remote_name_msg.bd_name[0] != '\0' && bta_dm_search_cb.p_btm_inq_info) {
  if (!bd_name_is_empty(remote_name_msg.bd_name) && p_btm_inq_info) {
    p_btm_inq_info->appl_knows_rem_name = true;
  }