Skip to content

Commit

Permalink
Merge pull request #17024 from Jafaral/fix-autorp
Browse files Browse the repository at this point in the history
pimd: fix a possible crash when enabling debug autorp
  • Loading branch information
ton31337 authored Oct 8, 2024
2 parents c10e4d3 + a49acba commit ecfcd6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pimd/pim_autorp.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ static bool pim_autorp_add_rp(struct pim_autorp *autorp, pim_addr rpaddr,
event_add_timer(router->master, autorp_rp_holdtime, trp,
holdtime, &(trp->hold_timer));
if (PIM_DEBUG_AUTORP)
zlog_debug("%s: Started %u second hold timer for RP %pI4",
__func__, holdtime, &rp->addr);
zlog_debug("%s: Started %u second hold timer for RP %pI4", __func__,
holdtime, &trp->addr);
} else {
/* If hold time is zero, make sure there doesn't exist a hold timer for it already */
event_cancel(&trp->hold_timer);
Expand Down

0 comments on commit ecfcd6c

Please sign in to comment.