#3264: Negative packet ids are also outside of range
This commit is contained in:
parent
7e47490e70
commit
a17d8f8a66
@ -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" );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user