mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-20 15:25:17 +08:00
Fix race in packetInNonceQueueIsAwaitingKey
This commit is contained in:
2
peer.go
2
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 {
|
||||
|
Reference in New Issue
Block a user