BSD: Minor fix of penultimate commit

This commit is contained in:
Ondrej Zajicek (work) 2017-12-07 13:44:00 +01:00
parent abae1cc58b
commit 7c454d9186

View file

@ -1144,7 +1144,7 @@ kif_update_sysdep_addr(struct iface *i)
return 0;
ip4_addr old = i->sysdep;
i->sysdep = ip4_from_ipa(ipa_from_sa4(&ifr.ifr_addr);
i->sysdep = ipa_to_ip4(ipa_from_sa4(&ifr.ifr_addr));
return !ip4_equal(i->sysdep, addr);
return !ip4_equal(i->sysdep, old);
}