#3264: Negative packet ids are also outside of range
This commit is contained in:
@@ -529,7 +529,7 @@ public enum Protocol
|
||||
{
|
||||
throw new BadPacketException( "Unsupported protocol version " + version );
|
||||
}
|
||||
if ( id > MAX_PACKET_ID )
|
||||
if ( id > MAX_PACKET_ID || id < 0 )
|
||||
{
|
||||
throw new BadPacketException( "Packet with id " + id + " outside of range" );
|
||||
}
|
||||
|
Reference in New Issue
Block a user