X-Git-Url: https://git.sommitrealweird.co.uk/quagga-debian.git/blobdiff_plain/6d99eb2938e976229cb50d848a1bc491532b54f9..263db399dd1fd6e1b69359ba82d0adebfb53f915:/bgpd/bgp_aspath.c diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c index d813bfb..22be742 100644 --- a/bgpd/bgp_aspath.c +++ b/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); }