mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 11:25:41 +00:00
bgpd: Add guard for zlog_debug
Add guard for `zlog_debug` when bgpd is not connected to zebra or zebra does not know the bgp instance. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
This commit is contained in:
parent
19bcca4f2e
commit
64632d285c
@ -73,9 +73,10 @@ static inline bool bgp_install_info_to_zebra(struct bgp *bgp)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!IS_BGP_INST_KNOWN_TO_ZEBRA(bgp)) {
|
if (!IS_BGP_INST_KNOWN_TO_ZEBRA(bgp)) {
|
||||||
zlog_debug(
|
if (BGP_DEBUG(zebra, ZEBRA))
|
||||||
"%s: No zebra instance to talk to, not installing information",
|
zlog_debug(
|
||||||
__func__);
|
"%s: No zebra instance to talk to, not installing information",
|
||||||
|
__func__);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user