From 24f8bd87e58abd7ac2463d4026dc84a48e0cd19f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 30 May 2018 09:50:22 -0400 Subject: [PATCH] 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 --- bgpd/bgp_rd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5