BLE: Check if the resolving list item is populated instead of IRK validity

pull/13759/head
Vincent Coubard 2020-09-23 11:03:25 +01:00
parent 1daee237e9
commit 3a632a3685
1 changed files with 2 additions and 2 deletions

View File

@ -455,7 +455,7 @@ struct PrivateAddressController::PrivacyResolveAddress final :
bool execute(PrivateAddressController& self) final bool execute(PrivateAddressController& self) final
{ {
if (self._resolving_list[resolving_list_index].peer_irk == irk_t{}) { if (!self._resolving_list[resolving_list_index].populated) {
// no entry at index 0, move to the next // no entry at index 0, move to the next
return start_next_resolution_round(self); return start_next_resolution_round(self);
} else { } else {
@ -494,7 +494,7 @@ private:
notify_completion(self, peer_address,false,nullptr); notify_completion(self, peer_address,false,nullptr);
return true; return true;
} }
} while (self._resolving_list[resolving_list_index].peer_irk != irk_t{}); } while (!self._resolving_list[resolving_list_index].populated);
start_resolution(self); start_resolution(self);
return false; return false;