]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_mac.c
bgpd: Adding BGP GR Global & Per Neighbour FSM changes
[mirror_frr.git] / bgpd / bgp_mac.c
index 61c7b4080c8600790769a6283c6d889e817753ae..537bb45455e8c2357485fc88f4c22389a4789436 100644 (file)
@@ -284,11 +284,13 @@ static void bgp_mac_remove_ifp_internal(struct bgp_self_mac *bsm, char *ifname,
        }
 
        if (bsm->ifp_list->count == 0) {
+               struct ethaddr mac = *macaddr;
+
                hash_release(bm->self_mac_hash, bsm);
                list_delete(&bsm->ifp_list);
                XFREE(MTYPE_BSM, bsm);
 
-               bgp_mac_rescan_all_evpn_tables(macaddr);
+               bgp_mac_rescan_all_evpn_tables(&mac);
        }
 }