diff options
Diffstat (limited to 'zebra/zebra_evpn_mac.c')
| -rw-r--r-- | zebra/zebra_evpn_mac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/zebra_evpn_mac.c b/zebra/zebra_evpn_mac.c index 5a1f5af5d7..86364d08a0 100644 --- a/zebra/zebra_evpn_mac.c +++ b/zebra/zebra_evpn_mac.c @@ -1102,7 +1102,7 @@ struct zebra_mac *zebra_evpn_mac_add(struct zebra_evpn *zevpn, struct zebra_mac tmp_mac; struct zebra_mac *mac = NULL; - memset(&tmp_mac, 0, sizeof(struct zebra_mac)); + memset(&tmp_mac, 0, sizeof(tmp_mac)); memcpy(&tmp_mac.macaddr, macaddr, ETH_ALEN); mac = hash_get(zevpn->mac_table, &tmp_mac, zebra_evpn_mac_alloc); @@ -1255,7 +1255,7 @@ void zebra_evpn_mac_del_all(struct zebra_evpn *zevpn, int uninstall, if (!zevpn->mac_table) return; - memset(&wctx, 0, sizeof(struct mac_walk_ctx)); + memset(&wctx, 0, sizeof(wctx)); wctx.zevpn = zevpn; wctx.uninstall = uninstall; wctx.upd_client = upd_client; @@ -1930,7 +1930,7 @@ void zebra_evpn_send_mac_list_to_client(struct zebra_evpn *zevpn) if (!zevpn->mac_table) return; - memset(&wctx, 0, sizeof(struct mac_walk_ctx)); + memset(&wctx, 0, sizeof(wctx)); wctx.zevpn = zevpn; hash_iterate(zevpn->mac_table, zebra_evpn_send_mac_hash_entry_to_client, |
