Merge pull request #13450 from patrasar/mld_core

pim6d: Fix crash in ipv6 pim command
This commit is contained in:
Donatas Abraitis 2023-06-01 09:13:30 +03:00 committed by GitHub
commit 8d4eeb9026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,15 +81,17 @@ static void pim_if_membership_refresh(struct interface *ifp)
pim_ifp = ifp->info; pim_ifp = ifp->info;
assert(pim_ifp); assert(pim_ifp);
#if PIM_IPV == 6
gm_ifp = pim_ifp->mld;
#endif
if (!pim_ifp->pim_enable) if (!pim_ifp->pim_enable)
return; return;
if (!pim_ifp->gm_enable) if (!pim_ifp->gm_enable)
return; return;
#if PIM_IPV == 6
gm_ifp = pim_ifp->mld;
if (!gm_ifp)
return;
#endif
/* /*
* First clear off membership from all PIM (S,G) entries on the * First clear off membership from all PIM (S,G) entries on the
* interface * interface