summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormvs <mvs@openbsd.org>2021-02-27 11:44:48 +0000
committermvs <mvs@openbsd.org>2021-02-27 11:44:48 +0000
commit2c72368d532637917c434225c2bf0090d2c46ddc (patch)
tree331999a5dce40f2024a5b821a3e7ad887af989f9 /lib
parentPath #defines are traditionally prefixed with _PATH. (diff)
downloadwireguard-openbsd-2c72368d532637917c434225c2bf0090d2c46ddc.tar.xz
wireguard-openbsd-2c72368d532637917c434225c2bf0090d2c46ddc.zip
Rework route_input() and rtm_sendup(). While we perform foreach loop
in route_input() we drop solock() after we checked socket state. We pass mbuf(9) to this socket at next loops, while it referenced as `last'. Socket's state could be changed by concurrent thread while it's not locked. Since we perform socket's checks and output in same iteration, the logic which prevents mbuf(9) chain copy for the last socket in list was removed. ok bluhm@ claudio@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions