[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Fix patch to TorControl.py



Update of /home/or/cvsroot/tor/contrib
In directory moria.mit.edu:/tmp/cvs-serv17047/contrib

Modified Files:
	TorControl.py 
Log Message:
Fix patch to TorControl.py

Index: TorControl.py
===================================================================
RCS file: /home/or/cvsroot/tor/contrib/TorControl.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- TorControl.py	12 May 2005 04:33:18 -0000	1.8
+++ TorControl.py	12 May 2005 04:42:45 -0000	1.9
@@ -210,7 +210,7 @@
   length,type = struct.unpack("!HH",header)
   if length:
     while length > len(body):
-      body += s.recv(length)
+      body += s.recv(length-len(body))
   return length,type,body
 
 def receive_message(s):