From d8118f6e76e5519881f9a37137c3a06b3cb60fd2 Mon Sep 17 00:00:00 2001 From: Colin Whittaker Date: Sat, 24 Jun 2023 13:33:12 -0700 Subject: [PATCH] config: make sure timer is not on the timeouts list before freeing Signed-off-by: Colin Whittaker Signed-off-by: Chad Monroe --- src/config.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.c b/src/config.c index 5ba4d9e..1cd4608 100644 --- a/src/config.c +++ b/src/config.c @@ -259,6 +259,9 @@ static void close_interface(struct interface *iface) dhcpv4_setup_interface(iface, false); #endif + /* make sure timer is not on the timeouts list before freeing */ + uloop_timeout_cancel(&iface->timer_rs); + clean_interface(iface); free(iface->addr4); free(iface->addr6); -- 2.30.2