summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2012-01-21 22:56:16 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2012-01-21 22:56:16 +0100
commitbc092571171d00de8b429fec8ba70c39240d7e91 (patch)
treefffab43d14294130b50c931ee0a9104f0d11e43d /nest
parentb573755df426156c22d2a4c65e3f502284820166 (diff)
Fixes another minor bug in iface scan.
Iface flags are not updated in some cases.
Diffstat (limited to 'nest')
-rw-r--r--nest/iface.c10
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;
}