summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-05 19:01:48 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-05 19:01:48 +0200
commit0afea380d7e7dec4523dd8f071692a80944ad85d (patch)
tree96fdf0dc2a06aa98bf11992db7ecff469ec827e6
parent7cba7704a46a830264fd6f7234d8927ea01feaf2 (diff)
clear errors on interface reload
-rw-r--r--interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/interface.c b/interface.c
index 7bf8f25..819e5e4 100644
--- a/interface.c
+++ b/interface.c
@@ -400,6 +400,7 @@ interface_change_config(struct interface *if_old, struct interface *if_new)
{
struct blob_attr *old_config = if_old->config;
+ interface_clear_errors(if_old);
if_old->config = if_new->config;
if (!if_old->config_autostart && if_new->config_autostart)
if_old->autostart = true;