summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-18 23:57:28 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-05-18 23:57:28 +0200
commitc346857597f5e8d9a95f51a7080b9df987ac5983 (patch)
treee9432810886598c14d63846aeb60d7e0fc643f3c
parent3d49dba94c7a2ebaa8626acf81ca74a22c7784f7 (diff)
fix segfault on interface free because of uninitialized event list
-rw-r--r--interface-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-event.c b/interface-event.c
index 025c3c0..c6fe1ca 100644
--- a/interface-event.c
+++ b/interface-event.c
@@ -107,7 +107,7 @@ interface_queue_event(struct interface *iface, enum interface_event ev)
iface->hotplug_ev = ev;
if (last_ev == ev && !list_empty(&iface->hotplug_list))
- list_del(&iface->hotplug_list);
+ list_del_init(&iface->hotplug_list);
else if (last_ev != ev && list_empty(&iface->hotplug_list))
list_add(&iface->hotplug_list, &pending);