aboutsummaryrefslogtreecommitdiff
path: root/networking/ifupdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ifupdown.c')
-rw-r--r--networking/ifupdown.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 59df4e80f..c7b560bf8 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1220,13 +1220,13 @@ int ifupdown_main(int argc UNUSED_PARAM, char **argv)
1220 /* ifup */ 1220 /* ifup */
1221 if (iface_state) { 1221 if (iface_state) {
1222 bb_error_msg("interface %s already configured", iface); 1222 bb_error_msg("interface %s already configured", iface);
1223 continue; 1223 goto next;
1224 } 1224 }
1225 } else { 1225 } else {
1226 /* ifdown */ 1226 /* ifdown */
1227 if (!iface_state) { 1227 if (!iface_state) {
1228 bb_error_msg("interface %s not configured", iface); 1228 bb_error_msg("interface %s not configured", iface);
1229 continue; 1229 goto next;
1230 } 1230 }
1231 } 1231 }
1232 llist_free(state_list, free); 1232 llist_free(state_list, free);
@@ -1316,6 +1316,9 @@ int ifupdown_main(int argc UNUSED_PARAM, char **argv)
1316 fclose(state_fp); 1316 fclose(state_fp);
1317 llist_free(state_list, free); 1317 llist_free(state_list, free);
1318 } 1318 }
1319 next:
1320 free(iface);
1321 free(liface);
1319 } 1322 }
1320 1323
1321 return any_failures; 1324 return any_failures;