From: Jorge Boncompte [DTI2] Date: Wed, 20 Jun 2012 14:34:01 +0000 (+0200) Subject: bgpd: Partially revert f018db8, fixes BZ#730 X-Git-Tag: frr-2.0-rc1~1799 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bb782fb50efcd972d4357f9a7164de2c317d2eef;p=mirror%2Ffrr.git bgpd: Partially revert f018db8, fixes BZ#730 The change from bgp_node_get() to bgp_node_lookup() broke aggregation. Signed-off-by: Jorge Boncompte [DTI2] Tested-by: Martin Winter Signed-off-by: David Lamparter --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index cd8f3fea98..0337224ad9 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)