Skip to content

Commit

Permalink
Merge pull request #16646 from csilt/pim-ifp-crash
Browse files Browse the repository at this point in the history
pimd: Fix crash in pimd
  • Loading branch information
ton31337 authored Aug 24, 2024
2 parents 8d4c706 + 12a783d commit ab2fd98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pimd/pim_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ static int pim_zebra_if_address_add(ZAPI_CALLBACK_ARGS)

if (PIM_DEBUG_ZEBRA) {
zlog_debug("%s: %s(%s) connected IP address %pFX flags %u %s",
__func__, c->ifp->name, VRF_LOGNAME(pim_ifp->pim->vrf), p, c->flags,
__func__, c->ifp->name,
(pim_ifp ? VRF_LOGNAME(pim_ifp->pim->vrf)
: "Unknown"),
p, c->flags,
CHECK_FLAG(c->flags, ZEBRA_IFA_SECONDARY)
? "secondary"
: "primary");
Expand Down

0 comments on commit ab2fd98

Please sign in to comment.