diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-07-02 10:39:40 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-07-02 10:39:40 +0200 |
commit | 947073e39747f547229076527ac82a8dc8529e60 (patch) | |
tree | 893bf908ebf1ad1db3c3a9c3c0c1c8a9efee5b24 /bgpd/bgp_vty.c | |
parent | tools: Catch argv_find() cases when testing only the index (diff) | |
download | frr-947073e39747f547229076527ac82a8dc8529e60.tar.xz frr-947073e39747f547229076527ac82a8dc8529e60.zip |
bgpd: Actually find the sequence number for large-community-list
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | bgpd/bgp_vty.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 4eb165385..449dab12b 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -17332,8 +17332,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; @@ -17382,8 +17381,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; |