If the client would send a malformed handshake packet, out-of-bounds memory could be read.
length
real_type