mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 05:27:16 +02:00
bgpd: Prevent crash when issuing a show rpki connections
When attempting to check rpki status and the connection has been turned off, let's check to see if we are connected before we ask the rpki subsystem, else we will get a crash in the rpki library. Signed-off-by: Donald Sharp <donaldsharp72@gmail.com>
This commit is contained in:
parent
bd8ee74b49
commit
dcf43ae009
|
@ -529,7 +529,10 @@ static struct rtr_mgr_group *get_groups(struct list *cache_list)
|
|||
|
||||
inline bool is_synchronized(struct rpki_vrf *rpki_vrf)
|
||||
{
|
||||
return rpki_vrf->rtr_is_synced;
|
||||
if (is_running(rpki_vrf))
|
||||
return rpki_vrf->rtr_is_synced;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
inline bool is_running(struct rpki_vrf *rpki_vrf)
|
||||
|
|
Loading…
Reference in a new issue