Skip to content

Commit

Permalink
Merge pull request FRRouting#16612 from louis-6wind/fix-no-rpki-9.1
Browse files Browse the repository at this point in the history
bgpd: fix crash at no rpki (backport 9.1 and lower)
  • Loading branch information
ton31337 authored Aug 22, 2024
2 parents 00d1dba + c4e4e6c commit b4400f9
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 @@ -264,7 +264,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 b4400f9

Please sign in to comment.