mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 18:44:54 +00:00
bgpd: Actually find the sequence number for large-community-list
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
acf6f22d15
commit
d5a157b7c3
@ -17235,8 +17235,7 @@ static int lcommunity_list_set_vty(struct vty *vty, int argc,
|
||||
char *cl_name;
|
||||
char *seq = NULL;
|
||||
|
||||
argv_find(argv, argc, "(1-4294967295)", &idx);
|
||||
if (idx)
|
||||
if (argv_find(argv, argc, "(1-4294967295)", &idx))
|
||||
seq = argv[idx]->arg;
|
||||
|
||||
idx = 0;
|
||||
@ -17285,8 +17284,7 @@ static int lcommunity_list_unset_vty(struct vty *vty, int argc,
|
||||
int idx = 0;
|
||||
char *seq = NULL;
|
||||
|
||||
argv_find(argv, argc, "(1-4294967295)", &idx);
|
||||
if (idx)
|
||||
if (argv_find(argv, argc, "(1-4294967295)", &idx))
|
||||
seq = argv[idx]->arg;
|
||||
|
||||
idx = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user