summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2022-01-28 20:11:12 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2022-01-28 20:11:12 +0100
commit53d3a0a80dadfb5a329ae186321de569fe6d457e (patch)
tree86b3e4ae9eee5660d784f82d99a099301320dc2b /bgpd
parentMerge pull request #9869 from leonshaw/fix/evpn-queue (diff)
downloadfrr-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.c2
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;