From: Felix Fietkau Date: Sun, 29 Jun 2014 21:27:29 +0000 (+0200) Subject: interface: clean up l3 device reference on remove/reload X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=77206574a21d406f6098b604c6e0774116afdb91;p=oweals%2Fnetifd.git interface: clean up l3 device reference on remove/reload Signed-off-by: Felix Fietkau --- diff --git a/interface.c b/interface.c index 1f83be3..ea25208 100644 --- a/interface.c +++ b/interface.c @@ -509,8 +509,8 @@ interface_cleanup_state(struct interface *iface) interface_clear_errors(iface); interface_set_proto_state(iface, NULL); - if (iface->main_dev.dev) - interface_set_main_dev(iface, NULL); + interface_set_main_dev(iface, NULL); + interface_set_l3_dev(iface, NULL); } static void