From bc092571171d00de8b429fec8ba70c39240d7e91 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sat, 21 Jan 2012 22:56:16 +0100 Subject: Fixes another minor bug in iface scan. Iface flags are not updated in some cases. --- nest/iface.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nest') diff --git a/nest/iface.c b/nest/iface.c index b8b214e5..2b14d3f0 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; } -- cgit v1.2.3