update the peer address when LTK has been found in old entry

pull/13942/head
Paul Szczeanek 2020-11-23 09:06:30 +00:00
parent 187ed98d82
commit 63887d19a8
1 changed files with 5 additions and 0 deletions

View File

@ -190,6 +190,11 @@ public:
SecurityDistributionFlags_t* flags = get_distribution_flags(correct_handle);
flags->connected = true;
/* update peer address */
SecurityDistributionFlags_t* old_flags = get_distribution_flags(*db_handle);
flags->peer_address = old_flags->peer_address;
flags->peer_address_is_public = old_flags->peer_address_is_public;
close_entry(*db_handle, false);
*db_handle = correct_handle;
cb(*db_handle, keys);