[or-cvs] Fix patch to TorControl.py

Nick Mathewson nickm at seul.org
Thu May 12 04:42:47 UTC 2005


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):



More information about the tor-commits mailing list