mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 14:00:18 +01:00
ipv6: fix up no-duplicates logic in nm_ip6_config_add_nameserver
This commit is contained in:
parent
b62702d337
commit
80d48837ce
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ void nm_ip6_config_add_nameserver (NMIP6Config *config, const struct in6_addr *n
|
|||
/* No dupes */
|
||||
nameservers = (struct in6_addr *)priv->nameservers->data;
|
||||
for (i = 0; i < priv->nameservers->len; i++) {
|
||||
g_return_if_fail (memcmp (nameserver, &nameservers[i], sizeof (struct in6_addr)) == 0);
|
||||
g_return_if_fail (memcmp (nameserver, &nameservers[i], sizeof (struct in6_addr)) != 0);
|
||||
}
|
||||
|
||||
g_array_append_val (priv->nameservers, *nameserver);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue