From e0a75e7001fdab5d59f62b03d640e64664217dd5 Mon Sep 17 00:00:00 2001 From: Sarita Patra Date: Mon, 17 Oct 2022 14:13:33 -0700 Subject: [PATCH] pimd: Fix v4-over-v6 nexthop handling In the current code, if_lookup_by_index() is called for un-initialized ifindex value. This issue is introduced after 11098 PR. Signed-off-by: Sarita Patra --- pimd/pim_zlookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pimd/pim_zlookup.c b/pimd/pim_zlookup.c index 87cf434133..0481c3a769 100644 --- a/pimd/pim_zlookup.c +++ b/pimd/pim_zlookup.c @@ -279,7 +279,7 @@ static int zclient_read_nexthop(struct pim_instance *pim, * secondary */ struct interface *ifp = if_lookup_by_index( - nexthop_tab[num_ifindex].ifindex, + nh_ifi, nexthop_vrf_id); if (!ifp)