mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 09:20:32 +01:00
core: fix nm_ip6_config_replace() nameserver address comparison
This commit is contained in:
parent
da2f1d5870
commit
c4035ead5f
1 changed files with 2 additions and 2 deletions
|
|
@ -617,8 +617,8 @@ nm_ip6_config_replace (NMIP6Config *dst, const NMIP6Config *src, gboolean *relev
|
|||
are_equal = num == nm_ip6_config_get_num_nameservers (dst);
|
||||
if (are_equal) {
|
||||
for (i = 0; i < num; i++ ) {
|
||||
if (IN6_ARE_ADDR_EQUAL (nm_ip6_config_get_nameserver (src, i),
|
||||
nm_ip6_config_get_nameserver (dst, i))) {
|
||||
if (!IN6_ARE_ADDR_EQUAL (nm_ip6_config_get_nameserver (src, i),
|
||||
nm_ip6_config_get_nameserver (dst, i))) {
|
||||
are_equal = FALSE;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue