summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_rd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-05-30 15:50:22 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-05-30 15:50:22 +0200
commit24f8bd87e58abd7ac2463d4026dc84a48e0cd19f (patch)
tree40857c84b0b638397c0b8f1f8578e05b10ed279f /bgpd/bgp_rd.c
parentpimd: hash_get w/ hash_alloc_intern cannot fail (diff)
downloadfrr-24f8bd87e58abd7ac2463d4026dc84a48e0cd19f.tar.xz
frr-24f8bd87e58abd7ac2463d4026dc84a48e0cd19f.zip
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_rd.c')
-rw-r--r--bgpd/bgp_rd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_rd.c b/bgpd/bgp_rd.c
index 3f7ea1604..356a949d6 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);
}