5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-23 14:35:40 +00:00

fix another drain on the bytestore

This commit is contained in:
Arceliar 2019-08-04 00:00:41 -05:00
parent 00e9c3dbd9
commit cbbb61b019

View File

@ -463,6 +463,7 @@ func (sinfo *sessionInfo) recvWorker() {
ch := make(chan func(), 1)
poolFunc := func() {
bs, isOK = crypto.BoxOpen(&k, p.Payload, &p.Nonce)
util.PutBytes(p.Payload)
callback := func() {
if !isOK {
util.PutBytes(bs)