Merge pull request #13655 from FRRouting/mergify/bp/stable/8.5/pr-13450

pim6d: Fix crash in ipv6 pim command (backport #13450)
This commit is contained in:
Donatas Abraitis 2023-06-01 13:26:38 +03:00 committed by GitHub
commit 8b6859d2e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,15 +94,17 @@ static void pim_if_membership_refresh(struct interface *ifp)
pim_ifp = ifp->info;
assert(pim_ifp);
#if PIM_IPV == 6
gm_ifp = pim_ifp->mld;
#endif
if (!pim_ifp->pim_enable)
return;
if (!pim_ifp->gm_enable)
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
* interface