]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
tun: fix crash when ForceMTU is called after close
authorJames Tucker <james@tailscale.com>
Wed, 27 Sep 2023 21:52:21 +0000 (14:52 -0700)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 10 Oct 2023 13:37:17 +0000 (15:37 +0200)
commitec8f6f82c20c617a3ea94478f2b5e4d49c6d3c2c
treeadb403a01a3e2bcc0b821772bba3a8e20b281674
parent1ec454f253c068f74ba7a7aea34546c9819493c0
tun: fix crash when ForceMTU is called after close

Close closes the events channel, resulting in a panic from send on
closed channel.

Reported-By: Brad Fitzpatrick <brad@tailscale.com>
Signed-off-by: James Tucker <james@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tun/tun_windows.go