diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-01-28 20:11:12 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-01-28 20:11:12 +0100 |
commit | 53d3a0a80dadfb5a329ae186321de569fe6d457e (patch) | |
tree | 86b3e4ae9eee5660d784f82d99a099301320dc2b /bgpd | |
parent | Merge pull request #9869 from leonshaw/fix/evpn-queue (diff) | |
download | frr-53d3a0a80dadfb5a329ae186321de569fe6d457e.tar.xz frr-53d3a0a80dadfb5a329ae186321de569fe6d457e.zip |
bgpd: Reuse bgp_path_info_extra_get() for allocating new bgp path info
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index d3bf9b6f2..770578a2c 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -6214,7 +6214,7 @@ static void bgp_static_update_safi(struct bgp *bgp, const struct prefix *p, new = info_make(ZEBRA_ROUTE_BGP, BGP_ROUTE_STATIC, 0, bgp->peer_self, attr_new, dest); SET_FLAG(new->flags, BGP_PATH_VALID); - new->extra = bgp_path_info_extra_new(); + bgp_path_info_extra_get(new); if (num_labels) { new->extra->label[0] = bgp_static->label; new->extra->num_labels = num_labels; |