]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Save event pointer for rib sweeping 18692/head
authorDonald Sharp <donaldsharp72@gmail.com>
Fri, 18 Apr 2025 21:44:39 +0000 (17:44 -0400)
committerDonald Sharp <donaldsharp72@gmail.com>
Fri, 18 Apr 2025 21:44:39 +0000 (17:44 -0400)
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>
zebra/main.c

index b23307458b51f0a04e15539353d51cfa3d7225cc..e8edc8d227dcffc10a8299d977c788099529710e 100644 (file)
@@ -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;