mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 22:30:43 +00:00
Merge pull request #10959 from patrasar/pim_coverity
pimd: Fixing pim coverity issues
This commit is contained in:
commit
95e6a352d8
@ -880,6 +880,12 @@ void pim_vxlan_mlag_update(bool enable, bool peer_state, uint32_t role,
|
||||
*/
|
||||
pim = pim_get_pim_instance(VRF_DEFAULT);
|
||||
|
||||
if (!pim) {
|
||||
if (PIM_DEBUG_VXLAN)
|
||||
zlog_debug("%s: Unable to find pim instance", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
if (enable)
|
||||
vxlan_mlag.flags |= PIM_VXLAN_MLAGF_ENABLED;
|
||||
else
|
||||
|
@ -166,6 +166,13 @@ static int pim_zebra_if_address_add(ZAPI_CALLBACK_ARGS)
|
||||
struct pim_instance *pim;
|
||||
|
||||
pim = pim_get_pim_instance(vrf_id);
|
||||
if (!pim) {
|
||||
if (PIM_DEBUG_ZEBRA)
|
||||
zlog_debug("%s: Unable to find pim instance",
|
||||
__func__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
pim_ifp->pim = pim;
|
||||
|
||||
pim_rp_check_on_if_add(pim_ifp);
|
||||
|
@ -388,6 +388,12 @@ void zclient_lookup_read_pipe(struct thread *thread)
|
||||
struct pim_zlookup_nexthop nexthop_tab[10];
|
||||
struct in_addr l = {.s_addr = INADDR_ANY};
|
||||
|
||||
if (!pim) {
|
||||
if (PIM_DEBUG_PIM_NHT_DETAIL)
|
||||
zlog_debug("%s: Unable to find pim instance", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
zclient_lookup_nexthop_once(pim, nexthop_tab, 10, l);
|
||||
thread_add_timer(router->master, zclient_lookup_read_pipe, zlookup, 60,
|
||||
&zlookup_read);
|
||||
|
Loading…
Reference in New Issue
Block a user