Merge pull request #10228 from opensourcerouting/bgp-agg-aspath

bgpd: fix aggregate route AS Path attribute
This commit is contained in:
Igor Ryzhov 2021-12-21 19:14:19 +03:00 committed by GitHub
commit 8bf225ee15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1073,7 +1073,9 @@ struct attr *bgp_attr_aggregate_intern(
new = bgp_attr_intern(&attr);
}
aspath_unintern(&new->aspath);
/* Always release the 'intern()'ed AS Path. */
aspath_unintern(&attr.aspath);
return new;
}