diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2012-01-21 22:56:16 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2012-01-21 22:56:16 +0100 |
commit | bc092571171d00de8b429fec8ba70c39240d7e91 (patch) | |
tree | fffab43d14294130b50c931ee0a9104f0d11e43d /nest/iface.c | |
parent | b573755df426156c22d2a4c65e3f502284820166 (diff) |
Fixes another minor bug in iface scan.
Iface flags are not updated in some cases.
Diffstat (limited to 'nest/iface.c')
-rw-r--r-- | nest/iface.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; } |