summaryrefslogtreecommitdiff
path: root/nest/iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'nest/iface.c')
-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;
}