aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-20 03:24:14 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-20 03:24:14 +0200
commite04f9543c011b67d81b85f97743dc9701ec446dc (patch)
treedf62dc094eddd4e7fff9fcca1ec99fce868d042d /peer.go
parentDiscourage building for Linux (diff)
downloadwireguard-go-e04f9543c011b67d81b85f97743dc9701ec446dc.tar.xz
wireguard-go-e04f9543c011b67d81b85f97743dc9701ec446dc.zip
Fix race in packetInNonceQueueIsAwaitingKey
Diffstat (limited to '')
-rw-r--r--peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/peer.go b/peer.go
index e78f6c4..4d3ac2b 100644
--- a/peer.go
+++ b/peer.go
@@ -54,7 +54,7 @@ type Peer struct {
nonce chan *QueueOutboundElement // nonce / pre-handshake queue
outbound chan *QueueOutboundElement // sequential ordering of work
inbound chan *QueueInboundElement // sequential ordering of work
- packetInNonceQueueIsAwaitingKey bool
+ packetInNonceQueueIsAwaitingKey AtomicBool
}
routines struct {