From 5abe4eef2ce264eff3f5fcd19342a26eda9455e0 Mon Sep 17 00:00:00 2001 From: Sarita Patra Date: Thu, 24 Nov 2022 22:43:15 -0800 Subject: [PATCH] pim6d: Fix RpAddress in "show ipv6 pim bsm-database" The fix for issue #12089 was reverted while resolving conflict for PR https://github.com/FRRouting/frr/pull/11600/. Signed-off-by: Sarita Patra --- pimd/pim_cmd_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pimd/pim_cmd_common.c b/pimd/pim_cmd_common.c index b39f688cdb9d..0d60b17f04ce 100644 --- a/pimd/pim_cmd_common.c +++ b/pimd/pim_cmd_common.c @@ -5610,7 +5610,7 @@ static void pim_show_bsm_db(struct pim_instance *pim, struct vty *vty, bool uj) bsm_rpinfo = (struct bsmmsg_rpinfo *)buf; /* unaligned, again */ - memcpy(&rp_addr, &bsm_rpinfo->rpaddr, + memcpy(&rp_addr, &bsm_rpinfo->rpaddr.addr, sizeof(rp_addr)); buf += sizeof(struct bsmmsg_rpinfo);