From: Felix Fietkau Date: Thu, 13 Oct 2011 13:13:22 +0000 (+0200) Subject: clean dns list if an interface is marked as down X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=2c4b334b450b6587a5c941f40ff484c2a79429af clean dns list if an interface is marked as down --- diff --git a/interface.c b/interface.c index 514b4d5..0a85e6f 100644 --- a/interface.c +++ b/interface.c @@ -85,6 +85,7 @@ interface_event(struct interface *iface, enum interface_event ev) static void mark_interface_down(struct interface *iface) { + interface_clear_dns(iface); vlist_flush_all(&iface->proto_addr); vlist_flush_all(&iface->proto_route); if (iface->main_dev.dev)