mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Do not export empty community list attribute in BGP.
This commit is contained in:
parent
0277cc0baf
commit
6b5a8649a4
@ -515,6 +515,10 @@ bgp_encode_attrs(struct bgp_proto *p, byte *w, ea_list *attrs, int remains)
|
||||
flags = a->flags & (BAF_OPTIONAL | BAF_TRANSITIVE | BAF_PARTIAL);
|
||||
len = bgp_get_attr_len(a);
|
||||
|
||||
/* Skip empty int sets */
|
||||
if (((a->type & EAF_TYPE_MASK) == EAF_TYPE_INT_SET) && (len == 0))
|
||||
continue;
|
||||
|
||||
if (remains < len + 4)
|
||||
goto err_no_buffer;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user