diff options
author | Russ White <russ@riw.us> | 2017-06-29 17:06:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-29 17:06:15 +0200 |
commit | 0bc44f61c942bc606c66407f4dfeca6e7b724abc (patch) | |
tree | 8228d692f1ef64c6ceea6cb1dec30e363f162082 /nhrpd | |
parent | Merge pull request #759 from qlyoung/remove-vty-argparsers (diff) | |
parent | bgpd: argv->arg grab bag (diff) | |
download | frr-0bc44f61c942bc606c66407f4dfeca6e7b724abc.tar.xz frr-0bc44f61c942bc606c66407f4dfeca6e7b724abc.zip |
Merge pull request #754 from qlyoung/fix-argv-arg
use argv->text where appropriate
Diffstat (limited to 'nhrpd')
-rw-r--r-- | nhrpd/nhrp_vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nhrpd/nhrp_vty.c b/nhrpd/nhrp_vty.c index 823a80967..fca27f26e 100644 --- a/nhrpd/nhrp_vty.c +++ b/nhrpd/nhrp_vty.c @@ -494,7 +494,7 @@ DEFUN(if_nhrp_map, if_nhrp_map_cmd, return nhrp_vty_return(vty, NHRP_ERR_FAIL); c->map = 1; - if (strcmp(argv[4]->text, "local") == 0) { + if (strmatch(argv[4]->text, "local")) { nhrp_cache_update_binding(c, NHRP_CACHE_LOCAL, 0, NULL, 0, NULL); } else{ if (str2sockunion(argv[4]->arg, &nbma_addr) < 0) |