summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
46b8781)
Firing timeout would cause a crash if interface has been deleted
meanwhile. The easiest way to trigger this was calling set_config ubus
method twice within 100 ms.
Cancel pending interface start before freeing it.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
static void interface_free(struct interface *iface)
{
static void interface_free(struct interface *iface)
{
+ uloop_timeout_cancel(&iface->reconnect);
interface_close(iface);
free(iface);
}
interface_close(iface);
free(iface);
}