mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 12:49:18 +00:00
Merge pull request #2793 from pacovn/Coverity_1472232_1472234_Unchecked_return_value
bgpd pimd: return check (Coverity 1472232 1472234)
This commit is contained in:
commit
0bad2f83d7
@ -5201,8 +5201,8 @@ int bgp_static_set_safi(afi_t afi, safi_t safi, struct vty *vty,
|
|||||||
if (routermac) {
|
if (routermac) {
|
||||||
bgp_static->router_mac =
|
bgp_static->router_mac =
|
||||||
XCALLOC(MTYPE_ATTR, ETH_ALEN + 1);
|
XCALLOC(MTYPE_ATTR, ETH_ALEN + 1);
|
||||||
prefix_str2mac(routermac,
|
(void)prefix_str2mac(routermac,
|
||||||
bgp_static->router_mac);
|
bgp_static->router_mac);
|
||||||
}
|
}
|
||||||
if (gwip)
|
if (gwip)
|
||||||
prefix_copy(&bgp_static->gatewayIp, &gw_ip);
|
prefix_copy(&bgp_static->gatewayIp, &gw_ip);
|
||||||
|
@ -854,9 +854,9 @@ struct pim_rpf *pim_rp_g(struct pim_instance *pim, struct in_addr group)
|
|||||||
__PRETTY_FUNCTION__, buf, buf1);
|
__PRETTY_FUNCTION__, buf, buf1);
|
||||||
}
|
}
|
||||||
pim_rpf_set_refresh_time(pim);
|
pim_rpf_set_refresh_time(pim);
|
||||||
pim_ecmp_nexthop_lookup(pim,
|
(void)pim_ecmp_nexthop_lookup(
|
||||||
&rp_info->rp.source_nexthop,
|
pim, &rp_info->rp.source_nexthop, &nht_p,
|
||||||
&nht_p, &rp_info->group, 1);
|
&rp_info->group, 1);
|
||||||
}
|
}
|
||||||
return (&rp_info->rp);
|
return (&rp_info->rp);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user