mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-24 02:48:55 +00:00
Merge pull request #2827 from pacovn/Coverity_1472310_Unchecked_return_value
bgpd: return value check (Coverity 1472310)
This commit is contained in:
commit
5487152318
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user