From: Donald Sharp Date: Wed, 30 May 2018 13:50:22 +0000 (-0400) Subject: bgpd: Ignore return code for str2prefix X-Git-Tag: frr-6.1-dev~393^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=24f8bd87e58abd7ac2463d4026dc84a48e0cd19f;p=matthieu%2Ffrr.git bgpd: Ignore return code for str2prefix The call to str2prefix_rd when we get to this point of the code cannot fail. As such let's just ignore the return code. Found by Coverity SA. Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_rd.c b/bgpd/bgp_rd.c index 3f7ea16045..356a949d69 100644 --- a/bgpd/bgp_rd.c +++ b/bgpd/bgp_rd.c @@ -210,5 +210,5 @@ void form_auto_rd(struct in_addr router_id, prd->family = AF_UNSPEC; prd->prefixlen = 64; sprintf(buf, "%s:%hu", inet_ntoa(router_id), rd_id); - str2prefix_rd(buf, prd); + (void)str2prefix_rd(buf, prd); }