Skip to content

Commit

Permalink
bgpd: Actually find the sequence number for large-community-list
Browse files Browse the repository at this point in the history
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
  • Loading branch information
ton31337 committed Jul 5, 2020
1 parent acf6f22 commit d5a157b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bgpd/bgp_vty.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d5a157b

Please sign in to comment.