The END_OF_DATA PDU was extended in version 1, so it has different length in different versions. We should do the PDU length check according to its version.