summaryrefslogtreecommitdiffstats
path: root/source/Protocol
diff options
context:
space:
mode:
Diffstat (limited to 'source/Protocol')
-rw-r--r--source/Protocol/Protocol125.cpp4
-rw-r--r--source/Protocol/Protocol132.cpp2
-rw-r--r--source/Protocol/Protocol142.cpp2
3 files changed, 7 insertions, 1 deletions
diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp
index 58afcdcae..beac46c69 100644
--- a/source/Protocol/Protocol125.cpp
+++ b/source/Protocol/Protocol125.cpp
@@ -96,8 +96,10 @@ enum
{ \
if (!m_ReceivedData.Proc(Var)) \
{ \
+ m_ReceivedData.CheckValid(); \
return PARSE_INCOMPLETE; \
} \
+ m_ReceivedData.CheckValid(); \
}
@@ -111,7 +113,7 @@ typedef unsigned char Byte;
cProtocol125::cProtocol125(cClientHandle * a_Client) :
super(a_Client),
- m_ReceivedData(64 KiB)
+ m_ReceivedData(32 KiB)
{
}
diff --git a/source/Protocol/Protocol132.cpp b/source/Protocol/Protocol132.cpp
index 8471b5909..3e28e471d 100644
--- a/source/Protocol/Protocol132.cpp
+++ b/source/Protocol/Protocol132.cpp
@@ -25,8 +25,10 @@
{ \
if (!m_ReceivedData.Proc(Var)) \
{ \
+ m_ReceivedData.CheckValid(); \
return PARSE_INCOMPLETE; \
} \
+ m_ReceivedData.CheckValid(); \
}
diff --git a/source/Protocol/Protocol142.cpp b/source/Protocol/Protocol142.cpp
index a9d49cd79..b0dec0211 100644
--- a/source/Protocol/Protocol142.cpp
+++ b/source/Protocol/Protocol142.cpp
@@ -25,8 +25,10 @@
{ \
if (!m_ReceivedData.Proc(Var)) \
{ \
+ m_ReceivedData.CheckValid(); \
return PARSE_INCOMPLETE; \
} \
+ m_ReceivedData.CheckValid(); \
}