bgpd: Use bgp pointer instead of peer pointer

When looking up a table, use the bgp pointer that we
have.  Code cleanliness and all that.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2022-11-08 07:16:53 -05:00
parent 89c73443e8
commit 802ca11f10

View File

@ -487,7 +487,7 @@ static void revalidate_all_routes(void)
safi_t safi;
FOREACH_AFI_SAFI (afi, safi) {
if (!peer->bgp->rib[afi][safi])
if (!bgp->rib[afi][safi])
continue;
if (!peer_established(peer))