diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-20 03:24:14 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-20 03:24:14 +0200 |
commit | e04f9543c011b67d81b85f97743dc9701ec446dc (patch) | |
tree | df62dc094eddd4e7fff9fcca1ec99fce868d042d /peer.go | |
parent | fa003b6933b07bdf87a541114ba8fe694329e2b2 (diff) | |
download | wireguard-go-e04f9543c011b67d81b85f97743dc9701ec446dc.tar.gz wireguard-go-e04f9543c011b67d81b85f97743dc9701ec446dc.zip |
Fix race in packetInNonceQueueIsAwaitingKey
Diffstat (limited to 'peer.go')
-rw-r--r-- | peer.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |