]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: initialise ecom sub field str when setting routermac
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 16 Feb 2017 16:09:46 +0000 (17:09 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 16 Feb 2017 16:09:46 +0000 (17:09 +0100)
In order to avoid valgrind issue, the str field is initialised.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_attr_evpn.c

index edfeeada7b18410f61e41554eac368f0592d37cc..be97ffda69d25f6493a4c9dadbebc9cade61f18a 100644 (file)
@@ -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);
        }
 }