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);
|
struct lp_state *tmpp = lp_save(tmp_linpool);
|
||||||
|
|
||||||
/* Temporary bucket */
|
/* Temporary bucket */
|
||||||
struct bgp_bucket *b = tmp_allocz(sizeof(struct bgp_bucket));
|
struct bgp_bucket *b = tmp_allocz(sizeof(struct bgp_bucket) + ea_size);
|
||||||
b->attrs = tmp_allocz(ea_size);
|
|
||||||
b->bmp = 1;
|
b->bmp = 1;
|
||||||
init_list(&b->prefixes);
|
init_list(&b->prefixes);
|
||||||
|
|
||||||
if (attrs)
|
if (attrs)
|
||||||
memcpy(b->attrs, attrs, ea_size);
|
memcpy(b->eattrs, attrs, ea_size);
|
||||||
|
|
||||||
/* Temporary prefix */
|
/* Temporary prefix */
|
||||||
struct bgp_prefix *px = tmp_allocz(prefix_size);
|
struct bgp_prefix *px = tmp_allocz(prefix_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user