From: Ondrej Zajicek (work) Date: Thu, 7 Dec 2017 12:44:00 +0000 (+0100) Subject: BSD: Minor fix of penultimate commit X-Git-Tag: v2.0.0~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c454d918682c072a6ae6ad8e0cd8d35b9edd2aa;p=thirdparty%2Fbird.git BSD: Minor fix of penultimate commit --- diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index be8b50d63..efbfdd5ef 100644 --- a/sysdep/bsd/krt-sock.c +++ b/sysdep/bsd/krt-sock.c @@ -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); }