]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_evpn_vty.c
*: Properly use memset() when zeroing
[mirror_frr.git] / bgpd / bgp_evpn_vty.c
index 0c9cd3b7218de1e4e4e0025ca7868b82dd476a2d..3d59c9df793e05850505ef85de9e39eadb155cc4 100644 (file)
@@ -2367,7 +2367,7 @@ static void evpn_show_routes_vni_all(struct vty *vty, struct bgp *bgp,
        num_vnis = hashcount(bgp->vnihash);
        if (!num_vnis)
                return;
-       memset(&wctx, 0, sizeof(struct vni_walk_ctx));
+       memset(&wctx, 0, sizeof(wctx));
        wctx.bgp = bgp;
        wctx.vty = vty;
        wctx.vtep_ip = vtep_ip;