From bd96cc5bd58dabcff64975c91f12779e593b16fc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 5 Sep 2014 01:22:22 +0300 Subject: Add checking for each packet size after reading and processed. --- src/net/messagein.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/net/messagein.h') diff --git a/src/net/messagein.h b/src/net/messagein.h index 708041c2c..cc32328cb 100644 --- a/src/net/messagein.h +++ b/src/net/messagein.h @@ -40,6 +40,8 @@ class MessageIn notfinal public: A_DELETE_COPY(MessageIn) + virtual ~MessageIn(); + /** * Returns the message ID. */ @@ -109,9 +111,6 @@ class MessageIn notfinal unsigned char *readBytes(int length, const char *const dstr = nullptr); - virtual ~MessageIn() - { } - static uint8_t fromServerDirection(const uint8_t serverDir) A_WARN_UNUSED; -- cgit v1.2.3-70-g09d2