mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-17 17:08:56 +00:00
Merge pull request #12921 from donaldsharp/pim_regiface_crash
pimd: Prevent crash when pimreg already exists.
This commit is contained in:
commit
0e957d006a
@ -1534,8 +1534,10 @@ void pim_if_create_pimreg(struct pim_instance *pim)
|
|||||||
pim->vrf->name);
|
pim->vrf->name);
|
||||||
pim->regiface->ifindex = PIM_OIF_PIM_REGISTER_VIF;
|
pim->regiface->ifindex = PIM_OIF_PIM_REGISTER_VIF;
|
||||||
|
|
||||||
pim_if_new(pim->regiface, false, false, true,
|
if (!pim->regiface->info)
|
||||||
false /*vxlan_term*/);
|
pim_if_new(pim->regiface, false, false, true,
|
||||||
|
false /*vxlan_term*/);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* On vrf moves we delete the interface if there
|
* On vrf moves we delete the interface if there
|
||||||
* is nothing going on with it. We cannot have
|
* is nothing going on with it. We cannot have
|
||||||
|
Loading…
Reference in New Issue
Block a user