From: Ondrej Zajicek Date: Thu, 23 Apr 2009 12:16:05 +0000 (+0200) Subject: Fixe bug in BGPv6 that causes to send invalid network withdraws. X-Git-Tag: v1.2.0~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f0c887a52fb19cee14725f66d435cebf2010390;p=thirdparty%2Fbird.git Fixe bug in BGPv6 that causes to send invalid network withdraws. --- diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 184120539..ce3d71e20 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -252,7 +252,7 @@ bgp_create_update(struct bgp_conn *conn, byte *buf) *tmp++ = 0; *tmp++ = BGP_AF_IPV6; *tmp++ = 1; - ea->attrs[0].u.ptr->length = bgp_encode_prefixes(p, tmp, buck, remains-11); + ea->attrs[0].u.ptr->length = 3 + bgp_encode_prefixes(p, tmp, buck, remains-11); size = bgp_encode_attrs(p, w, ea, remains); ASSERT(size >= 0); w += size;