mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 16:57:43 +00:00
lib: fix the "no match ipv6 next-hop type" command
Trivial NULL pointer dereference bug. Fixes the following crash: bgpd aborted: vtysh -c "configure terminal" -c "route-map RMAP permit 1" -c "no match ipv6 next-hop type" Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
9f2337c913
commit
4cfecc3ea9
@ -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)
|
if (rmap_match_set_hook.no_match_ipv6_next_hop_type)
|
||||||
return 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);
|
RMAP_EVENT_MATCH_DELETED);
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user