diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 4e4dce84fe..43b5a3fd09 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -7477,8 +7477,8 @@ static void bgp_aggregate_install( * If the aggregate information has not changed * no need to re-install it again. */ - if (bgp_aggregate_info_same(orig, origin, aspath, community, - ecommunity, lcommunity)) { + if (pi && bgp_aggregate_info_same(pi, origin, aspath, community, + ecommunity, lcommunity)) { bgp_dest_unlock_node(dest); if (aspath)