aboutsummaryrefslogtreecommitdiff
path: root/device
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-05-20 18:09:55 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-05-20 18:09:55 +0200
commitbd83f0ac993bc5bee0b0f96c74d24cab142ba385 (patch)
tree07e339d5d06b4e688ad3d0256ecf49b944a9e76e /device
parent50d779833e4457f5a2bed788d4048939db8e9fe7 (diff)
downloadwireguard-go-bd83f0ac993bc5bee0b0f96c74d24cab142ba385.tar.gz
wireguard-go-bd83f0ac993bc5bee0b0f96c74d24cab142ba385.zip
conn: linux: protect read fds
The -1 protection was removed and the wrong error was returned, causing us to read from a bogus fd. As well, remove the useless closures that aren't doing anything, since this is all synchronized anyway. Fixes: 10533c3 ("all: make conn.Bind.Open return a slice of receive functions") Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device')
0 files changed, 0 insertions, 0 deletions