소스 검색

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
Tatsuhiro Tsujikawa 18 년 전
부모
커밋
5b8358b4d5
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      ChangeLog
  2. 1 1
      src/PeerConnection.h

+ 1 - 1
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>

+ 1 - 1
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: