]> git.proxmox.com Git - mirror_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>
Fri, 7 Sep 2018 21:43:11 +0000 (14:43 -0700)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
bgpd/bgp_aspath.c

index d6ad52b3a6eb9e5799645e91de115a56151ae3f6..b532927e80d845acb9c98851046c842597960c60 100644 (file)
@@ -899,7 +899,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,