Revert protocol bug added in lasts commit
This commit is contained in:
parent
1de9faa93e
commit
a1fb373b1b
|
@ -138,6 +138,12 @@ void Protocol::internalRecvData(uint8* buffer, uint16 size)
|
|||
g_logger.traceError("failed to decrypt message");
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
int size = m_inputMessage->getU16();
|
||||
if(size != m_inputMessage->getUnreadSize()) {
|
||||
g_logger.traceError("invalid message size");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
onRecv(m_inputMessage);
|
||||
|
|
Loading…
Reference in New Issue