diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-03 08:18:11 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-03 08:22:45 -0400 |
| commit | 8619629ada22ed19eb95d491799cc03a13d6d8aa (patch) | |
| tree | 856dd0a838a555b2a909dfe939f91d8852df805c /pimd/pim_routemap.c | |
| parent | 391b8b08a5699c14fed37b179dc19ba6ad3420d0 (diff) | |
lib, bgpd, ospf6d, ospfd, pimd: Allow finish to cleanup a bit more
When calling route_map_finish, every place that we do we must
first set the deletion event to NULL, or we will create an infinite
loop, if we are using the delayed route-map application code.
As such we might as well just make the route_map_finish code
do this work, as that there is really no viable alternative here
and route_map_finish should only be called on shutdown.
This fixes an infinite loop in zebra on shutdown when there
are route-maps.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_routemap.c')
| -rw-r--r-- | pimd/pim_routemap.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/pimd/pim_routemap.c b/pimd/pim_routemap.c index b41124376f..4230c127ad 100644 --- a/pimd/pim_routemap.c +++ b/pimd/pim_routemap.c @@ -52,8 +52,5 @@ void pim_route_map_init(void) void pim_route_map_terminate(void) { - route_map_add_hook(NULL); - route_map_delete_hook(NULL); - route_map_event_hook(NULL); route_map_finish(); } |
