bgpd: Actually find the sequence number for large-community-list

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
Donatas Abraitis 2020-07-02 11:39:40 +03:00
parent acf6f22d15
commit d5a157b7c3

View File

@ -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;