mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
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>
This commit is contained in:
parent
bd8ee74b49
commit
547894c087
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue