summaryrefslogtreecommitdiff
path: root/bgpd/bgp_route.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r--bgpd/bgp_route.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index cd8f3fea..0337224a 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -4678,9 +4678,7 @@ bgp_aggregate_increment (struct bgp *bgp, struct prefix *p,
if (BGP_INFO_HOLDDOWN (ri))
return;
- child = bgp_node_lookup (table, p);
- if (! child)
- return;
+ child = bgp_node_get (table, p);
/* Aggregate address configuration check. */
for (rn = child; rn; rn = rn->parent)
@@ -4714,9 +4712,7 @@ bgp_aggregate_decrement (struct bgp *bgp, struct prefix *p,
if (p->prefixlen == 0)
return;
- child = bgp_node_lookup (table, p);
- if (! child)
- return;
+ child = bgp_node_get (table, p);
/* Aggregate address configuration check. */
for (rn = child; rn; rn = rn->parent)