From: paco Date: Thu, 28 Jun 2018 10:41:52 +0000 (+0200) Subject: bgpd: return value (Coverity 1399203) X-Git-Tag: frr-6.1-dev~230^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=da3b87f8b0dc12bac2834471e7fa669220447443;p=matthieu%2Ffrr.git bgpd: return value (Coverity 1399203) The return value can be ignored because in case of error both the 'afi' and 'safi' variables are set to the invalid values (AFI_MAX, SAFI_MAX), and the invalid values are handled properly afterwards in the 'default' blocks. Signed-off-by: F. Aragon --- diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c index aa98f8a557..da90bbd67d 100644 --- a/bgpd/bgp_open.c +++ b/bgpd/bgp_open.c @@ -80,8 +80,9 @@ void bgp_capability_vty_out(struct vty *vty, struct peer *peer, afi_t afi; safi_t safi; - bgp_map_afi_safi_iana2int(ntohs(mpc.afi), mpc.safi, - &afi, &safi); + (void)bgp_map_afi_safi_iana2int(ntohs(mpc.afi), + mpc.safi, &afi, &safi); + if (use_json) { switch (afi) { case AFI_IP: