mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-11 15:09:07 -04:00
A temporary testing fix for the buffer corruption issue (#3331)
This commit is contained in:
committed by
GitHub
parent
4144c87fc1
commit
561f31245d
@@ -52,7 +52,9 @@ func SniffQUIC(b []byte) (*SniffHeader, error) {
|
||||
// Crypto data separated across packets
|
||||
cryptoLen := 0
|
||||
cryptoData := bytespool.Alloc(int32(len(b)))
|
||||
defer bytespool.Free(cryptoData)
|
||||
defer func() {
|
||||
bytespool.Free(cryptoData)
|
||||
}()
|
||||
|
||||
cache := buf.New()
|
||||
defer cache.Release()
|
||||
|
||||
Reference in New Issue
Block a user