mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-04 16:22:50 +08:00
device: put handshake buffer in pool in FlushPacketQueues
This appears to have been an oversight. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:

committed by
Jason A. Donenfeld

parent
48c3b87eb8
commit
0cc15e7c7c
@@ -387,7 +387,8 @@ func (device *Device) RemoveAllPeers() {
|
||||
func (device *Device) FlushPacketQueues() {
|
||||
for {
|
||||
select {
|
||||
case <-device.queue.handshake:
|
||||
case elem := <-device.queue.handshake:
|
||||
device.PutMessageBuffer(elem.buffer)
|
||||
default:
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user