mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-01-06 14:24:41 +08:00
Do a small sanity check, however
This commit is contained in:
parent
821a7a45bc
commit
b881e9cf04
@ -51,6 +51,7 @@ public class NativeVelocityCipher implements VelocityCipher {
|
||||
@Override
|
||||
public ByteBuf process(ChannelHandlerContext ctx, ByteBuf source) throws ShortBufferException {
|
||||
ensureNotDisposed();
|
||||
source.memoryAddress(); // sanity check
|
||||
|
||||
int len = source.readableBytes();
|
||||
ByteBuf out = ctx.alloc().directBuffer(len);
|
||||
|
Loading…
Reference in New Issue
Block a user