]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Drop redundant assignment for aspath segment type and length
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 5 Oct 2023 19:46:54 +0000 (22:46 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 5 Oct 2023 19:46:54 +0000 (22:46 +0300)
They are already initialized via assegment_new().

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_aspath.c

index fc13085437f8f48a1b71edad69c1ab5ea98dae70..0e70de9d4669743f377b43467c5afba9ecec09f7 100644 (file)
@@ -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. */