diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-04-14 17:11:12 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-04-14 17:11:12 +0200 |
commit | 8520d78a52e04af6396b379dfe6aa47861ca2e13 (patch) | |
tree | c210b1022f221c88119d33f6e5f9846f10d8e8c3 | |
parent | 1aa37f77cd92a6aee0c512ca6e3f56f388ed2922 (diff) |
release devices only after flushing ip state
-rw-r--r-- | interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.c b/interface.c index b7c33b7..6b95a6d 100644 --- a/interface.c +++ b/interface.c @@ -142,9 +142,9 @@ mark_interface_down(struct interface *iface) { if (iface->state == IFS_UP) interface_event(iface, IFEV_DOWN); - interface_flush_state(iface); interface_ip_flush(&iface->config_ip); interface_ip_flush(&iface->proto_ip); + interface_flush_state(iface); iface->state = IFS_DOWN; } |