Fixed more bugs

This commit is contained in:
Ryzerth 2021-07-19 20:51:17 +02:00
parent 4b43da095e
commit c9f1ec0a8a

View File

@ -93,8 +93,7 @@ namespace spyserver {
SpyServerClientClass* _this = (SpyServerClientClass*)ctx;
if (count < sizeof(SpyServerMessageHeader)) {
printf("ERROR: Incomplete message header\n");
return;
_this->readSize(sizeof(SpyServerMessageHeader)-count, &buf[count]);
}
int size = _this->readSize(_this->receivedHeader.BodySize, _this->readBuf);