mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 09:03:42 +00:00
bgpd: fix bug while iterating over VPN table
The routing table data structure can create intermediate route nodes during its normal operation, so we always need to check if the 'info' pointer of a route node is NULL or not before dereferencing it. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
68badf70b1
commit
2eab13249c
@ -313,6 +313,8 @@ static void vnc_redistribute_withdraw(struct bgp *bgp, afi_t afi, uint8_t type)
|
||||
|
||||
/* This is the per-RD table of prefixes */
|
||||
table = prn->info;
|
||||
if (!table)
|
||||
continue;
|
||||
|
||||
for (rn = bgp_table_top(table); rn; rn = bgp_route_next(rn)) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user