Skip to content

Commit

Permalink
Merge pull request #16626 from FRRouting/mergify/bp/stable/9.0/pr-16612
Browse files Browse the repository at this point in the history
bgpd: fix crash at no rpki (backport 9.1 and lower) (backport #16612)
  • Loading branch information
donaldsharp authored Aug 22, 2024
2 parents 73686da + 20b6ea5 commit 2206475
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 2206475

Please sign in to comment.