mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 10:54:47 +00:00
pimd: Prevent crash with igmp only config
Issue: #7892 has a startup config where only igmp interfaces are created and a igmp report comes in. Effectively we are not creating the regiface device unless we do a `ip pim`. This is incorrect we should always create the regiface. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
52624d7945
commit
853d21145c
@ -545,7 +545,7 @@ static int pim_cmd_igmp_start(struct interface *ifp)
|
||||
pim_ifp = ifp->info;
|
||||
|
||||
if (!pim_ifp) {
|
||||
(void)pim_if_new(ifp, true, false, false, false);
|
||||
pim_ifp = pim_if_new(ifp, true, false, false, false);
|
||||
need_startup = 1;
|
||||
} else {
|
||||
if (!PIM_IF_TEST_IGMP(pim_ifp->options)) {
|
||||
@ -553,6 +553,7 @@ static int pim_cmd_igmp_start(struct interface *ifp)
|
||||
need_startup = 1;
|
||||
}
|
||||
}
|
||||
pim_if_create_pimreg(pim_ifp->pim);
|
||||
|
||||
/* 'ip igmp' executed multiple times, with need_startup
|
||||
* avoid multiple if add all and membership refresh
|
||||
|
Loading…
Reference in New Issue
Block a user