diff options
author | 2016-02-05 13:17:37 +0000 | |
---|---|---|
committer | 2016-02-05 13:17:37 +0000 | |
commit | 3e8337df896f84d77115221a4d5ddd4714aa37ce (patch) | |
tree | 44527de14d1cd80f7d698095da0fbe12340d8abc /lib/libc | |
parent | Sort includes. (diff) | |
download | wireguard-openbsd-3e8337df896f84d77115221a4d5ddd4714aa37ce.tar.xz wireguard-openbsd-3e8337df896f84d77115221a4d5ddd4714aa37ce.zip |
return if the bpf_if passed to bpf_tap and _bpf_mtap are NULL.
this works around a toctou bug in a very common idiom in our tree,
in between the two lines below:
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
figured out by and diff from haesbart
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions