summaryrefslogtreecommitdiff
path: root/lib/routemap.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2018-10-22 15:48:46 -0400
committerGitHub <noreply@github.com>2018-10-22 15:48:46 -0400
commit920b243c1b154476ab9a629ac002817ead5a1efa (patch)
treec2bf1bdc0fa1d4bfa86d1a3c57d066ff0a553314 /lib/routemap.c
parent9a2deb2473f7d337f472792308a41c52b7feb6e2 (diff)
parent98c06e8618fe7c73edddeaf6ac35186521e4604b (diff)
Merge pull request #3209 from opensourcerouting/cli-fuzzer-fixes
CLI fuzzer fixes
Diffstat (limited to 'lib/routemap.c')
-rw-r--r--lib/routemap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/routemap.c b/lib/routemap.c
index 3a20ed5cda..6d6267af6b 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -2251,7 +2251,8 @@ DEFUN(no_match_ipv6_next_hop_type, no_match_ipv6_next_hop_type_cmd,
if (rmap_match_set_hook.no_match_ipv6_next_hop_type)
return rmap_match_set_hook.no_match_ipv6_next_hop_type(
- vty, index, "ipv6 next-hop type", argv[idx_word]->arg,
+ vty, index, "ipv6 next-hop type",
+ (argc <= idx_word) ? NULL : argv[idx_word]->arg,
RMAP_EVENT_MATCH_DELETED);
return CMD_SUCCESS;
}