diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2017-02-16 17:09:46 +0100 | 
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2017-02-16 17:09:46 +0100 | 
| commit | 9972b54e63c80ca54789aedeb4c9b711b96783a7 (patch) | |
| tree | 3d4506e062b41c3a5f6c545d990b633cfa1d7552 | |
| parent | 66ef4ee487e6477936a122ad12f09ce9bcfb7cf5 (diff) | |
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>
| -rw-r--r-- | bgpd/bgp_attr_evpn.c | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_attr_evpn.c b/bgpd/bgp_attr_evpn.c index edfeeada7b..be97ffda69 100644 --- a/bgpd/bgp_attr_evpn.c +++ b/bgpd/bgp_attr_evpn.c @@ -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);  	}  }  | 
