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:
Pavel Šimerda 2013-07-18 16:05:19 +02:00
parent f7b2443035
commit 74d8d374b3

View file

@ -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);