Add packet length check.

Forgot to put it back..