diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2024-08-22 00:00:20 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-22 00:00:20 -0400 | 
| commit | 50521a90583524fdcd8961e124ded6602625f4e1 (patch) | |
| tree | ee76ec247d32ecb2f54bdbdcfcfd960065666101 | |
| parent | 6cfe383166a0ef517179f0ca31b29603f1247013 (diff) | |
| parent | 5676e30c251c5f484eb08f31121533cf7f824712 (diff) | |
Merge pull request #16618 from FRRouting/mergify/bp/stable/10.0/pr-16608
bgpd: fix crash at no rpki (backport #16608)
| -rw-r--r-- | bgpd/bgp_rpki.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index 22f78fb80a..818e581fa3 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -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);  	}  }  | 
