Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Revert limits mistakenly added to EncryptionRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
Thinkofname committed Mar 30, 2016
1 parent d1a1e87 commit 1dda27e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static byte[] readArray(ByteBuf buf)
public static byte[] readArray(ByteBuf buf, int limit)
{
int len = readVarInt( buf );
Preconditions.checkArgument( len <= limit, "Cannot receive byte array longer than %d (got %s bytes)", limit, len );
Preconditions.checkArgument( len <= limit, "Cannot receive byte array longer than %s (got %s bytes)", limit, len );
byte[] ret = new byte[ len ];
buf.readBytes( ret );
return ret;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public class EncryptionRequest extends DefinedPacket
public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
{
serverId = readString( buf );
publicKey = readArray( buf, 128 );
verifyToken = readArray( buf, 128 );
publicKey = readArray( buf );
verifyToken = readArray( buf );
}

@Override
Expand Down

0 comments on commit 1dda27e

Please sign in to comment.