]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Fix for large AS paths which are split into segments
authorMartin Winter <mwinter@opensourcerouting.org>
Fri, 7 Sep 2018 21:43:11 +0000 (14:43 -0700)
committerMartin Winter <mwinter@opensourcerouting.org>
Mon, 24 Sep 2018 13:47:16 +0000 (06:47 -0700)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
bgpd/bgp_aspath.c

index e02617691fa783a402fca224740a6ec51100e5c5..9fc52a17a1ad2c28240d67d2b4808f8917f24cbc 100644 (file)
@@ -904,7 +904,7 @@ size_t aspath_put(struct stream *s, struct aspath *as, int use32bit)
                        while ((seg->length - written) > AS_SEGMENT_MAX) {
                                assegment_header_put(s, seg->type,
                                                     AS_SEGMENT_MAX);
-                               assegment_data_put(s, seg->as, AS_SEGMENT_MAX,
+                               assegment_data_put(s, (seg->as + written), AS_SEGMENT_MAX,
                                                   use32bit);
                                written += AS_SEGMENT_MAX;
                                bytes += ASSEGMENT_SIZE(AS_SEGMENT_MAX,