From bc479b1b17b3f12b487f4164966b35d1ec08fede Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 21 Apr 2023 07:57:19 -0400 Subject: [PATCH] bgpd: Coverity mistakenly believes we can fall through Coverity has incorrectly found that a switch statement can be fallen through. It is missing the fact that the previous case statement has a return through every path it can get too. Let's just appease coverity Signed-off-by: Donald Sharp --- bgpd/bgp_mplsvpn_snmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bgpd/bgp_mplsvpn_snmp.c b/bgpd/bgp_mplsvpn_snmp.c index 20fec6d77b..0208a6f5a5 100644 --- a/bgpd/bgp_mplsvpn_snmp.c +++ b/bgpd/bgp_mplsvpn_snmp.c @@ -1627,6 +1627,7 @@ static uint8_t *mplsL3vpnRteTable(struct variable *v, oid name[], } } else return SNMP_INTEGER(MPLSL3VPNVRFRTECIDRTYPEOTHER); + break; case MPLSL3VPNVRFRTEINETCIDRPROTO: switch (pi->type) { case ZEBRA_ROUTE_CONNECT: -- 2.39.5