]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: fix a possible crash when enabling debug autorp 17024/head
authorJafar Al-Gharaibeh <jafar@atcorp.com>
Mon, 7 Oct 2024 23:20:34 +0000 (18:20 -0500)
committerJafar Al-Gharaibeh <jafar@atcorp.com>
Mon, 7 Oct 2024 23:22:06 +0000 (18:22 -0500)
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
pimd/pim_autorp.c

index 1f4d0c65af67a3e6874ad72fa97bdc23996a3dc2..35347a2790c869b88c323a4f0416e96fe8d7aa0e 100644 (file)
@@ -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);