mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 03:51:39 +00:00
bgpd: initialise ecom sub field str when setting routermac
In order to avoid valgrind issue, the str field is initialised. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
66ef4ee487
commit
9972b54e63
@ -46,6 +46,7 @@ void bgp_add_routermac_ecom(struct attr *attr, struct ethaddr *routermac)
|
||||
if (!attr->extra->ecommunity)
|
||||
attr->extra->ecommunity = ecommunity_new();
|
||||
ecommunity_add_val(attr->extra->ecommunity, &routermac_ecom);
|
||||
ecommunity_str (attr->extra->ecommunity);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user