summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2025-04-18 17:44:39 -0400
committerDonald Sharp <donaldsharp72@gmail.com>2025-04-18 17:44:39 -0400
commit547894c0872c9ee8b495b0bde0aced91a82959b9 (patch)
treef0530b9dbc19e8d9ec3a56a01fd346a1e917966e
parentbd8ee74b49424e0e137d13d62e989892004ce027 (diff)
zebra: Save event pointer for rib sweeping
The rib_sweep_route function when not doing graceful restart does not attempt to save the event on the t_rib_sweep pointer for shutdown. Prevent any weird shenanigans by allowing shutdown to clean up the rib_sweep_route event. Signed-off-by: Donald Sharp <donaldsharp72@gmail.com>
-rw-r--r--zebra/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/main.c b/zebra/main.c
index b23307458b..e8edc8d227 100644
--- a/zebra/main.c
+++ b/zebra/main.c
@@ -332,7 +332,7 @@ void zebra_main_router_started(void)
zrouter.rib_sweep_time = 0;
zrouter.graceful_restart = zebra_di.graceful_restart;
if (!zrouter.graceful_restart)
- event_add_timer(zrouter.master, rib_sweep_route, NULL, 0, NULL);
+ event_add_timer(zrouter.master, rib_sweep_route, NULL, 0, &zrouter.t_rib_sweep);
else {
int gr_cleanup_time;