summaryrefslogtreecommitdiff
path: root/src/net/messagein.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-05 01:22:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:57 +0300
commitbd96cc5bd58dabcff64975c91f12779e593b16fc (patch)
tree2c440ec399ff6446e83585c97e5919d67f801594 /src/net/messagein.h
parent2549b4753c78726677583d046fc8841c8f3e3577 (diff)
downloadmanaplus-bd96cc5bd58dabcff64975c91f12779e593b16fc.tar.gz
manaplus-bd96cc5bd58dabcff64975c91f12779e593b16fc.tar.bz2
manaplus-bd96cc5bd58dabcff64975c91f12779e593b16fc.tar.xz
manaplus-bd96cc5bd58dabcff64975c91f12779e593b16fc.zip
Add checking for each packet size after reading and processed.
Diffstat (limited to 'src/net/messagein.h')
-rw-r--r--src/net/messagein.h5
1 files changed, 2 insertions, 3 deletions
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;