From c9f1ec0a8a430b85c115c00a4b5b6a29f57d0f68 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Mon, 19 Jul 2021 20:51:17 +0200 Subject: [PATCH] Fixed more bugs --- spyserver_source/src/spyserver_client.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spyserver_source/src/spyserver_client.cpp b/spyserver_source/src/spyserver_client.cpp index 452ad3c5..d8ee0736 100644 --- a/spyserver_source/src/spyserver_client.cpp +++ b/spyserver_source/src/spyserver_client.cpp @@ -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);