]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Ignore return code for str2prefix
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 30 May 2018 13:50:22 +0000 (09:50 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 30 May 2018 13:50:22 +0000 (09:50 -0400)
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 <sharpd@cumulusnetworks.com>
bgpd/bgp_rd.c

index 3f7ea160452dc731d1b46e70324983755f28a221..356a949d691c0a79b3e08907536e1072cef917d3 100644 (file)
@@ -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);
 }