diff options
author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2024-12-18 23:58:45 +0100 |
---|---|---|
committer | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2024-12-19 04:52:48 +0100 |
commit | c51452d4760329f8195d1d64f11c4dbf541e480a (patch) | |
tree | d23d36292eb7a7ffec802134adbc206cfaa65a94 /pimd/pim_tib.c | |
parent | Merge pull request #17599 from opensourcerouting/fix/reduce_default_connect_t... (diff) | |
download | frr-c51452d4760329f8195d1d64f11c4dbf541e480a.tar.xz frr-c51452d4760329f8195d1d64f11c4dbf541e480a.zip |
pim: handle return code to fix a couple of coverity issues
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Diffstat (limited to '')
-rw-r--r-- | pimd/pim_tib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pimd/pim_tib.c b/pimd/pim_tib.c index e9992691a..d067abf45 100644 --- a/pimd/pim_tib.c +++ b/pimd/pim_tib.c @@ -35,7 +35,11 @@ tib_sg_oil_setup(struct pim_instance *pim, pim_sgaddr sg, struct interface *oif) up = pim_upstream_find(pim, &sg); if (up) { memcpy(&nexthop, &up->rpf.source_nexthop, sizeof(struct pim_nexthop)); - pim_nht_lookup_ecmp(pim, &nexthop, vif_source, &grp, false); + if (!pim_nht_lookup_ecmp(pim, &nexthop, vif_source, &grp, false)) + if (PIM_DEBUG_PIM_NHT_RP) + zlog_debug("%s: Nexthop Lookup failed vif_src:%pPA, sg.src:%pPA, sg.grp:%pPA", + __func__, &vif_source, &sg.src, &sg.grp); + if (nexthop.interface) input_iface_vif_index = pim_if_find_vifindex_by_ifindex( pim, nexthop.interface->ifindex); |