From: paco Date: Fri, 8 Jun 2018 17:18:49 +0000 (+0200) Subject: zebra: resource leak fix (Coverity 1453454) X-Git-Tag: frr-6.1-dev~353^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F2388%2Fhead;p=mirror%2Ffrr.git zebra: resource leak fix (Coverity 1453454) Signed-off-by: F. Aragon --- diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index 98fa7ccf67..59f0cf52f0 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -1864,7 +1864,7 @@ static int zvni_gw_macip_del(struct interface *ifp, zebra_vni_t *zvni, zlog_debug( "%u:SVI %s(%u) VNI %u, sending GW MAC %s IP %s del to BGP", ifp->vrf_id, ifp->name, ifp->ifindex, zvni->vni, - prefix_mac2str(&(n->emac), NULL, ETHER_ADDR_STRLEN), + prefix_mac2str(&(n->emac), buf1, sizeof(buf1)), ipaddr2str(ip, buf2, sizeof(buf2))); /* Remove neighbor from BGP. */