summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-01-10 15:22:55 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-01-10 15:22:55 +0000
commit5b8358b4d5917491093a04bddc867559b63bf52f (patch)
tree77aa759f24158a2e839d1e16c446f57e0d977112
parent9a7fe58c57999e1fff6887473048a96a8ede1736 (diff)
I forgot to commit PeerConnection.h
2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just payload length(4bytes) are received. This happens because lenbufLength is not updated in this particular case and successive call of receiveMessage() overwrites payload length with bytes recieved which are payload body. * src/PeerConnection.{h, cc} * src/message.h
-rw-r--r--ChangeLog2
-rw-r--r--src/PeerConnection.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 50b506ce..3f99f190 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,7 +5,7 @@
is not updated in this particular case and successive call of
receiveMessage() overwrites payload length with bytes recieved which
are payload body.
- * src/PeerConnection.cc
+ * src/PeerConnection.{h, cc}
* src/message.h
2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
diff --git a/src/PeerConnection.h b/src/PeerConnection.h
index 6cf5dbf2..d64b6f9e 100644
--- a/src/PeerConnection.h
+++ b/src/PeerConnection.h
@@ -54,7 +54,7 @@ private:
char resbuf[MAX_PAYLOAD_LEN];
int32_t resbufLength;
int32_t currentPayloadLength;
- unsigned char lenbuf[4];
+ char lenbuf[4];
int32_t lenbufLength;
public: