Skip to content

Commit

Permalink
Merge pull request #13450 from patrasar/mld_core
Browse files Browse the repository at this point in the history
pim6d: Fix crash in ipv6 pim command
  • Loading branch information
ton31337 authored Jun 1, 2023
2 parents 7470509 + 6d1d2c2 commit 8d4eeb9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pimd/pim_nb_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,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
Expand Down

0 comments on commit 8d4eeb9

Please sign in to comment.