Fix a couple of coverity warnings in pim and bgp.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
/* generate EAD-ES */
build_evpn_type1_prefix(&p, BGP_EVPN_AD_ES_ETH_TAG, &es->esi,
es->originator_ip);
- bgp_evpn_type1_route_update(bgp, es, NULL, &p);
+ (void)bgp_evpn_type1_route_update(bgp, es, NULL, &p);
}
}
}
#ifdef PIM_ENFORCE_LOOPFREE_MFC
- if (iif->ifindex == oif->ifindex) {
+ if (oif && iif && (iif->ifindex == oif->ifindex)) {
strlcpy(args->errmsg,
"% IIF same as OIF and loopfree enforcement is enabled; rejecting",
args->errmsg_len);