summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_interface.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-02-20 15:32:55 -0300
committerRenato Westphal <renato@opensourcerouting.org>2019-02-20 17:10:13 -0300
commit7e6d3db84ed752c68d79e4da59b9365f74d57b0a (patch)
tree11ec146fc50b70354f8ab1bb251249128e981a8b /ospf6d/ospf6_interface.c
parentae13cc51d5f3e5205fd092831959dc08775c9f25 (diff)
pbrd: fix removal of ipv6 nexthops
Fix bug in the code that compares IPv6 addresses. If memcmp() returns 0 then the two addresses are equal. Because of this problem, hash_release() could return NULL in a few places, leading to the following crashes (found by the CLI fuzzer): pbrd aborted: vtysh -c "configure terminal" -c "pbr-map WORD seq 100" -c "no set nexthop 2001:db8::1" pbrd aborted: vtysh -c "configure terminal" -c "nexthop-group NHGROUP" -c "no nexthop 2001:db8::1" Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_interface.c')
0 files changed, 0 insertions, 0 deletions