summaryrefslogtreecommitdiff
path: root/lib/openbsd-queue.h
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 23:04:12 -0300
commitf24f3450c97fe18a3cffc54f31e06cb630544a70 (patch)
tree6f4e760e684d2c8898a971cd9ecc481cfa4b4878 /lib/openbsd-queue.h
parentc06c9ded2114055fcba55ee1020d68121f0f1aad (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 'lib/openbsd-queue.h')
0 files changed, 0 insertions, 0 deletions