Explorar el Código

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 hace 18 años
padre
commit
5b8358b4d5
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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: