mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
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…
x
Reference in New Issue
Block a user