diff options
-rw-r--r-- | networking/ifupdown.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 156ceb7ab..9e6fc6291 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -1356,15 +1356,15 @@ extern int ifupdown_main(int argc, char **argv) | |||
1356 | } else { | 1356 | } else { |
1357 | /* Remove an interface from the linked list */ | 1357 | /* Remove an interface from the linked list */ |
1358 | if (iface_state) { | 1358 | if (iface_state) { |
1359 | const llist_t *link = iface_state->link; | 1359 | llist_t *l = iface_state->link; |
1360 | free(iface_state->data); | 1360 | free(iface_state->data); |
1361 | iface_state->data = NULL; | 1361 | iface_state->data = NULL; |
1362 | iface_state->link = NULL; | 1362 | iface_state->link = NULL; |
1363 | if (link) { | 1363 | if (l) { |
1364 | iface_state->data = link->data; | 1364 | iface_state->data = l->data; |
1365 | iface_state->link = link->link; | 1365 | iface_state->link = l->link; |
1366 | } | 1366 | } |
1367 | free(link); | 1367 | free(l); |
1368 | } | 1368 | } |
1369 | } | 1369 | } |
1370 | } | 1370 | } |