From: Sarita Patra Date: Mon, 17 Oct 2022 21:13:33 +0000 (-0700) Subject: pimd: Fix v4-over-v6 nexthop handling X-Git-Tag: base_8.5~323^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e0a75e7001fdab5d59f62b03d640e64664217dd5;p=matthieu%2Ffrr.git 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 --- 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)