summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/explicit_bzero.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2011-01-10 18:57:59 +0000
committerbluhm <bluhm@openbsd.org>2011-01-10 18:57:59 +0000
commit0b25aa5597b3a81b7245dd7325abc60f09fe444f (patch)
treee69cd2ffe2ee597d7d4943f8b4dc0e60d46593f1 /sys/lib/libkern/explicit_bzero.c
parentregen (diff)
downloadwireguard-openbsd-0b25aa5597b3a81b7245dd7325abc60f09fe444f.tar.xz
wireguard-openbsd-0b25aa5597b3a81b7245dd7325abc60f09fe444f.zip
If pf_test() was called recursively, the global variable pf_hdrs
could be used multiple times for different packets. This happened when pflow(4) was used. Instead of a global variable, store the pf_headers in a local variable on the stack. david@ found the bug, narrowed it down and tested the fix. ok henning@
Diffstat (limited to 'sys/lib/libkern/explicit_bzero.c')
0 files changed, 0 insertions, 0 deletions