mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 19:20:35 +01:00
trivial: remove unnecessary check
inet_ntop doesn't even have enough information to add the percent sign and the device name.
This commit is contained in:
parent
f7b2443035
commit
74d8d374b3
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ merge_one_ip6_config (NMResolvConfData *rc, NMIP6Config *src)
|
|||
add_string_item (rc->nameservers, buf);
|
||||
} else {
|
||||
if (inet_ntop (AF_INET6, addr, buf, INET6_ADDRSTRLEN) > 0) {
|
||||
if (IN6_IS_ADDR_LINKLOCAL (addr) && strchr (buf, '%') == NULL) {
|
||||
if (IN6_IS_ADDR_LINKLOCAL (addr)) {
|
||||
tmp = g_strdup_printf ("%s%%%s", buf, iface);
|
||||
add_string_item (rc->nameservers, tmp);
|
||||
g_free (tmp);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue