Fix: protocol of the received packet is now checked.