mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 12:34:55 +02:00
Revert protocol bug added in lasts commit
This commit is contained in:
@@ -138,6 +138,12 @@ void Protocol::internalRecvData(uint8* buffer, uint16 size)
|
|||||||
g_logger.traceError("failed to decrypt message");
|
g_logger.traceError("failed to decrypt message");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
int size = m_inputMessage->getU16();
|
||||||
|
if(size != m_inputMessage->getUnreadSize()) {
|
||||||
|
g_logger.traceError("invalid message size");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onRecv(m_inputMessage);
|
onRecv(m_inputMessage);
|
||||||
|
Reference in New Issue
Block a user