summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2023-10-10 11:36:34 -0400
committerGitHub <noreply@github.com>2023-10-10 11:36:34 -0400
commit03d1b44c9bf8bce5486d2ecfff6f81ab28e8976c (patch)
treec644a5a903d5fdaea7e2fc5aff9aa01db3a42195
parent0ddda5cd96ab6721929f6896cf87f01d55942193 (diff)
parentfc9a8da45e36090395f2dbb50d53f21a6c54d41b (diff)
Merge pull request #14535 from opensourcerouting/fix/bgp_aggregate_stuff
bgpd: Drop redundant assignment for aspath segment type and length
-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 fc13085437..0e70de9d46 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. */