aboutsummaryrefslogtreecommitdiffstats
path: root/device/send.go
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/send.go
parentrwcancel: use ordinary os.ErrClosed instead of custom error (diff)
downloadwireguard-go-bd83f0ac993bc5bee0b0f96c74d24cab142ba385.tar.xz
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/send.go')
0 files changed, 0 insertions, 0 deletions