Merge pull request #12921 from donaldsharp/pim_regiface_crash

pimd: Prevent crash when pimreg already exists.
This commit is contained in:
Donatas Abraitis 2023-03-02 08:14:35 +02:00 committed by GitHub
commit 0e957d006a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1534,8 +1534,10 @@ void pim_if_create_pimreg(struct pim_instance *pim)
pim->vrf->name);
pim->regiface->ifindex = PIM_OIF_PIM_REGISTER_VIF;
if (!pim->regiface->info)
pim_if_new(pim->regiface, false, false, true,
false /*vxlan_term*/);
/*
* On vrf moves we delete the interface if there
* is nothing going on with it. We cannot have