]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: return value check (Coverity 1472310)
authorF. Aragon <paco@voltanet.io>
Mon, 13 Aug 2018 16:05:42 +0000 (18:05 +0200)
committerF. Aragon <paco@voltanet.io>
Mon, 13 Aug 2018 16:05:42 +0000 (18:05 +0200)
Signed-off-by: F. Aragon <paco@voltanet.io>
bgpd/bgp_debug.c

index c7c36882aff59bc7de702cea7d22e992156b06c6..f49f80b5d912a4fb07e16bb0018f88d8f1c7383b 100644 (file)
@@ -621,7 +621,7 @@ static int bgp_debug_parse_evpn_prefix(struct vty *vty, struct cmd_token **argv,
                memset(&ip, 0, sizeof(struct ipaddr));
 
                argv_find(argv, argc, "mac", &mac_idx);
-               prefix_str2mac(argv[mac_idx + 1]->arg, &mac);
+               (void)prefix_str2mac(argv[mac_idx + 1]->arg, &mac);
 
                argv_find(argv, argc, "ip", &ip_idx);
                str2ipaddr(argv[ip_idx + 1]->arg, &ip);