Skip to content

Commit

Permalink
Merge pull request #16617 from FRRouting/mergify/bp/stable/10.1/pr-16608
Browse files Browse the repository at this point in the history
bgpd: fix crash at no rpki (backport #16608)
  • Loading branch information
ton31337 authored Aug 22, 2024
2 parents 1568dc3 + 88633c4 commit 1062ff3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bgpd/bgp_rpki.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,9 @@ static void rpki_delete_all_cache_nodes(struct rpki_vrf *rpki_vrf)

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

0 comments on commit 1062ff3

Please sign in to comment.