ser/deser toch dood, wat nou?

This commit is contained in:
MarcEricMartel 2023-10-31 15:30:07 -04:00
parent 3db59a876c
commit 48078182a1

View File

@ -853,6 +853,8 @@ bool netprot::Deserialize(ErrorLog* errlog, char* buf, uint32_t *buflen) {
return true;
}
netprot::PACKET_TYPE netprot::getType(char* buf, const uint32_t buflen) {
if (buflen < 1 ||
buf[0] >= (char)netprot::PACKET_TYPE::LAST_PACK ||