diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-05-12 04:42:45 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-05-12 04:42:45 +0000 |
commit | 0b15170cf31d89290c4464778638f75de7592a01 (patch) | |
tree | 06a7f349c5b28a3df0b8d8bc11926d2f9437bdff /contrib/TorControl.py | |
parent | 7a50dee1573dfee07dea47f0eeaa3dd36b7ada86 (diff) | |
download | tor-0b15170cf31d89290c4464778638f75de7592a01.tar.gz tor-0b15170cf31d89290c4464778638f75de7592a01.zip |
Fix patch to TorControl.py
svn:r4195
Diffstat (limited to 'contrib/TorControl.py')
-rwxr-xr-x | contrib/TorControl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/TorControl.py b/contrib/TorControl.py index 9c1aba89c5..0c1609aca8 100755 --- a/contrib/TorControl.py +++ b/contrib/TorControl.py @@ -210,7 +210,7 @@ def _receive_msg(s): 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): |