From 8520d78a52e04af6396b379dfe6aa47861ca2e13 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 14 Apr 2012 17:11:12 +0200 Subject: [PATCH] release devices only after flushing ip state --- interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1