aboutsummaryrefslogtreecommitdiffstats
path: root/device.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-17 00:43:23 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-22 05:43:03 +0200
commitcf81a28dd30bd8714432d2ff108d64c7f4b65e50 (patch)
treef2b2c502c22ad6b3d006c289f28fd897f4c703a5 /device.go
parentsend: more precise padding calculation (diff)
downloadwireguard-go-cf81a28dd30bd8714432d2ff108d64c7f4b65e50.tar.xz
wireguard-go-cf81a28dd30bd8714432d2ff108d64c7f4b65e50.zip
Fixup buffer freeing
Diffstat (limited to 'device.go')
-rw-r--r--device.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/device.go b/device.go
index b1f3569..bbcd0fc 100644
--- a/device.go
+++ b/device.go
@@ -19,8 +19,7 @@ const (
DeviceRoutineNumberAdditional = 2
)
-
-const preallocatedBuffers = 0
+var preallocatedBuffers = 0
type Device struct {
isUp AtomicBool // device is (going) up