mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-15 13:31:54 +00:00
bgp bucket fixup
This commit is contained in:
parent
fb517b66fd
commit
0656ff59c2
@ -2531,13 +2531,12 @@ bgp_bmp_encode_rte(ea_list *c, struct bgp_proto *bgp_p, byte *buf, const net_add
|
||||
struct lp_state *tmpp = lp_save(tmp_linpool);
|
||||
|
||||
/* Temporary bucket */
|
||||
struct bgp_bucket *b = tmp_allocz(sizeof(struct bgp_bucket));
|
||||
b->attrs = tmp_allocz(ea_size);
|
||||
struct bgp_bucket *b = tmp_allocz(sizeof(struct bgp_bucket) + ea_size);
|
||||
b->bmp = 1;
|
||||
init_list(&b->prefixes);
|
||||
|
||||
if (attrs)
|
||||
memcpy(b->attrs, attrs, ea_size);
|
||||
memcpy(b->eattrs, attrs, ea_size);
|
||||
|
||||
/* Temporary prefix */
|
||||
struct bgp_prefix *px = tmp_allocz(prefix_size);
|
||||
|
Loading…
Reference in New Issue
Block a user