Browse Source

Fix malformed AS_SEQUENCE segments for long as path

Eugene Bogomazov 1 year ago
parent
commit
a0a4e6814c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bgpd/bgp_aspath.c

+ 1 - 1
bgpd/bgp_aspath.c

@@ -901,7 +901,7 @@ 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, use32bit);
+              assegment_data_put (s, (seg->as+written), AS_SEGMENT_MAX, use32bit);
               written += AS_SEGMENT_MAX;
               bytes += ASSEGMENT_SIZE (AS_SEGMENT_MAX, use32bit);
             }