Skip to content

Commit

Permalink
Merge pull request #16618 from FRRouting/mergify/bp/stable/10.0/pr-16608
Browse files Browse the repository at this point in the history
bgpd: fix crash at no rpki (backport #16608)
  • Loading branch information
Jafaral authored Aug 22, 2024
2 parents 6cfe383 + 5676e30 commit 50521a9
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 @@ -438,7 +438,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 50521a9

Please sign in to comment.