From: Ondrej Zajicek Date: Sat, 21 Jan 2012 21:56:16 +0000 (+0100) Subject: Fixes another minor bug in iface scan. X-Git-Tag: v1.3.7~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc092571171d00de8b429fec8ba70c39240d7e91;p=thirdparty%2Fbird.git Fixes another minor bug in iface scan. Iface flags are not updated in some cases. --- diff --git a/nest/iface.c b/nest/iface.c index b8b214e5a..2b14d3f05 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -290,11 +290,11 @@ if_update(struct iface *new) memcpy(i, new, sizeof(*i)); goto newif; } - else if (c) - { - if_copy(i, new); - if_notify_change(c, i); - } + + if_copy(i, new); + if (c) + if_notify_change(c, i); + i->flags |= IF_UPDATED; return i; }