1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

fix a typo

This commit is contained in:
Darien Raymond 2018-01-19 14:08:45 +01:00
parent 4b5e41c783
commit c3dce11c4e
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -206,7 +206,7 @@ func (c *AEADCipher) EncodePacket(key []byte, b *buf.Buffer) error {
}
func (c *AEADCipher) DecodePacket(key []byte, b *buf.Buffer) error {
if b.Len() <= v.IVSize() {
if b.Len() <= c.IVSize() {
return newError("insufficient data: ", b.Len())
}
ivLen := c.IVSize()