From: Felix Fietkau Date: Thu, 29 Mar 2012 13:07:01 +0000 (+0300) Subject: fix use-after-free when an interface event is pending while the interface is being... X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b32cffd4f0a2b904a1e3c38e5141100970f89a65;p=oweals%2Fnetifd.git fix use-after-free when an interface event is pending while the interface is being freed --- 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);