mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 04:52:01 +00:00
Merge pull request #13062 from Pdoijode/evpn-use-after-free-fix
zebra: Fix for heap-use-after-free in EVPN
This commit is contained in:
commit
0c462d6c88
@ -165,6 +165,17 @@ static int zebra_ns_delete(char *name)
|
||||
if_down(ifp);
|
||||
}
|
||||
|
||||
if (IS_ZEBRA_IF_BOND(ifp))
|
||||
zebra_l2if_update_bond(ifp, false);
|
||||
if (IS_ZEBRA_IF_BOND_SLAVE(ifp))
|
||||
zebra_l2if_update_bond_slave(ifp, IFINDEX_INTERNAL,
|
||||
false);
|
||||
/* Special handling for bridge or VxLAN interfaces. */
|
||||
if (IS_ZEBRA_IF_BRIDGE(ifp))
|
||||
zebra_l2_bridge_del(ifp);
|
||||
else if (IS_ZEBRA_IF_VXLAN(ifp))
|
||||
zebra_l2_vxlanif_del(ifp);
|
||||
|
||||
UNSET_FLAG(ifp->flags, IFF_UP);
|
||||
if_delete_update(&ifp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user