summaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.c b/config.c
index a1267b0..be10379 100644
--- a/config.c
+++ b/config.c
@@ -120,7 +120,8 @@ config_parse_interface(struct uci_section *s, bool alias)
if (!interface_add_alias(iface, config))
goto error_free_config;
} else {
- interface_add(iface, config);
+ if (!interface_add(iface, config))
+ goto error_free_config;
}
return;