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

Commit fd99172b authored by Martin Brabham's avatar Martin Brabham
Browse files

Avoid lookup on NULL address

Test: Manually watch some debug logs during pairing and auth processes
Change-Id: I6410b8bc00587196392ae787a6aa1d85c0c71967
parent 6b4b6f56
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -260,8 +260,10 @@ static int prop2cfg(const RawAddress* remote_bd_addr, bt_property_t* prop) {
      return false;
  }

  /* No need to look for bonded device with address of NULL */
  if (remote_bd_addr &&
      btif_in_fetch_bonded_device(bdstr) == BT_STATUS_SUCCESS) {
    /* save changes if the device was bonded */
  if (btif_in_fetch_bonded_device(bdstr) == BT_STATUS_SUCCESS) {
    btif_config_flush();
  }