platform: fix handling IPv6 address index in nm_platform_ip_address_sync()

Fixes: 4a548423b9 ('core: change order/priority of static IPv6 addresses relative to autoconf6/DHCPv6')
(cherry picked from commit b52941ac34)
(cherry picked from commit 169d74b2e4)
This commit is contained in:
Thomas Haller 2022-05-02 13:08:29 +02:00
parent 08884c53a9
commit 1188942c75
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -4277,7 +4277,6 @@ nm_platform_ip_address_sync(NMPlatform *self,
if (IN6_ARE_ADDR_EQUAL(&plat_addr->address, &know_addr->address)) {
/* we have a match. Mark address as handled. */
i_know++;
delete_remaining_addrs = FALSE;
goto next_plat;
}