Skip to content

Commit

Permalink
Merge pull request FRRouting#16627 from FRRouting/mergify/bp/stable/8…
Browse files Browse the repository at this point in the history
….5/pr-16612

bgpd: fix crash at no rpki (backport 9.1 and lower) (backport FRRouting#16612)
  • Loading branch information
donaldsharp committed Aug 22, 2024
2 parents b9eeffc + fb58bd7 commit 5313e9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bgpd/bgp_rpki.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ static void rpki_delete_all_cache_nodes(void)
struct cache *cache;

for (ALL_LIST_ELEMENTS(cache_list, cache_node, cache_next, cache)) {
rtr_mgr_remove_group(rtr_config, cache->preference);
if (is_running())
rtr_mgr_remove_group(rtr_config, cache->preference);
listnode_delete(cache_list, cache);
}
}
Expand Down

0 comments on commit 5313e9d

Please sign in to comment.