Skip to content

Commit

Permalink
bgpd: Drop redundant assignment for aspath segment type and length
Browse files Browse the repository at this point in the history
They are already initialized via assegment_new().

Signed-off-by: Donatas Abraitis <[email protected]>
  • Loading branch information
ton31337 committed Oct 5, 2023
1 parent 580bc71 commit fc9a8da
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bgpd/bgp_aspath.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit fc9a8da

Please sign in to comment.