diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-29 16:07:01 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-29 16:07:01 +0300 |
commit | b32cffd4f0a2b904a1e3c38e5141100970f89a65 (patch) | |
tree | fa304e9153e926d3d99224e8370092362f42ca61 | |
parent | f196d048107c1c28bf6ddda31f0927a5893e5f3d (diff) |
fix use-after-free when an interface event is pending while the interface is being freed
-rw-r--r-- | interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/interface.c b/interface.c index d749896..0aa5c5a 100644 --- a/interface.c +++ b/interface.c @@ -242,6 +242,7 @@ interface_cleanup(struct interface *iface, bool reload) list_for_each_entry_safe(dep, tmp, &iface->users, list) interface_remove_user(dep); + interface_dequeue_event(iface); interface_ip_flush(&iface->config_ip); interface_flush_state(iface); interface_clear_errors(iface); |