mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 03:05:49 +01:00
Hopefully fix native cipher segfault
This commit is contained in:
parent
c70006a36c
commit
c1ba555553
@ -88,7 +88,7 @@ public class NativeCipher implements BungeeCipher
|
||||
// It is important to note that in AES CFB-8 mode, the number of read bytes, is the number of outputted bytes
|
||||
if ( out.writableBytes() < length )
|
||||
{
|
||||
out.capacity( length );
|
||||
out.capacity( out.writerIndex() + length );
|
||||
}
|
||||
// Cipher the bytes
|
||||
nativeCipher.cipher( forEncryption, pointer, iv, in.memoryAddress() + in.readerIndex(), out.memoryAddress() + out.writerIndex(), length );
|
||||
|
Loading…
Reference in New Issue
Block a user