summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-10-05 21:46:54 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-10-05 21:46:54 +0200
commitfc9a8da45e36090395f2dbb50d53f21a6c54d41b (patch)
tree22a1fc90b3b7c4457fc70f125f04a4030a40285c
parentMerge pull request #14517 from adrianomarto/pim-msdp-sa-rp (diff)
downloadfrr-fc9a8da45e36090395f2dbb50d53f21a6c54d41b.tar.xz
frr-fc9a8da45e36090395f2dbb50d53f21a6c54d41b.zip
bgpd: Drop redundant assignment for aspath segment type and length
They are already initialized via assegment_new(). Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
-rw-r--r--bgpd/bgp_aspath.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c
index fc1308543..0e70de9d4 100644
--- a/bgpd/bgp_aspath.c
+++ b/bgpd/bgp_aspath.c
@@ -1016,8 +1016,6 @@ static struct assegment *aspath_aggregate_as_set_add(struct aspath *aspath,
seg = seg->next;
seg->next = asset;
}
- asset->type = AS_SET;
- asset->length = 1;
asset->as[0] = as;
} else {
/* Check this AS value already exists or not. */