mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 23:11:21 +00:00
bgpd: handle case where passed RD is null
The function vpn_leak_to_vrf_update_onevrf() has the RD parameter set to NULL. Test the RD value before displaying it in the called function. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
629d84f512
commit
616e9f0d9f
@ -1907,7 +1907,8 @@ static bool vpn_leak_to_vrf_update_onevrf(struct bgp *to_bgp, /* to */
|
||||
return false;
|
||||
}
|
||||
|
||||
if (debug)
|
||||
rd_buf[0] = '\0';
|
||||
if (debug && prd)
|
||||
prefix_rd2str(prd, rd_buf, sizeof(rd_buf), to_bgp->asnotation);
|
||||
|
||||
/* A route MUST NOT ever be accepted back into its source VRF, even if
|
||||
|
Loading…
Reference in New Issue
Block a user