Skip to content

Commit

Permalink
config: make sure timer is not on the timeouts list before freeing
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Whittaker <[email protected]>
Signed-off-by: Chad Monroe <[email protected]>
  • Loading branch information
Colin Whittaker authored and ldir-EDB0 committed Oct 24, 2023
1 parent 4bbc6e7 commit d8118f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d8118f6

Please sign in to comment.