mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 05:28:51 +00:00
Merge pull request #13746 from FRRouting/mergify/bp/dev/9.0/pr-13739
zebra: Prevent crash because nl is NULL on shutdown (backport #13739)
This commit is contained in:
commit
9fa39ba3ce
11
zebra/main.c
11
zebra/main.c
@ -206,12 +206,17 @@ void zebra_finalize(struct event *dummy)
|
|||||||
|
|
||||||
vrf_terminate();
|
vrf_terminate();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Stop dplane thread and finish any cleanup
|
||||||
|
* This is before the zebra_ns_early_shutdown call
|
||||||
|
* because sockets that the dplane depends on are closed
|
||||||
|
* in those functions
|
||||||
|
*/
|
||||||
|
zebra_dplane_shutdown();
|
||||||
|
|
||||||
ns_walk_func(zebra_ns_early_shutdown, NULL, NULL);
|
ns_walk_func(zebra_ns_early_shutdown, NULL, NULL);
|
||||||
zebra_ns_notify_close();
|
zebra_ns_notify_close();
|
||||||
|
|
||||||
/* Stop dplane thread and finish any cleanup */
|
|
||||||
zebra_dplane_shutdown();
|
|
||||||
|
|
||||||
/* Final shutdown of ns resources */
|
/* Final shutdown of ns resources */
|
||||||
ns_walk_func(zebra_ns_final_shutdown, NULL, NULL);
|
ns_walk_func(zebra_ns_final_shutdown, NULL, NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user