mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Fixe bug in BGPv6 that causes to send invalid network withdraws.
This commit is contained in:
parent
b9539e78d8
commit
8f0c887a52
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user