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

[or-cvs] r18261: {torctl} Damnit. (torctl/trunk/python/TorCtl)



Author: mikeperry
Date: 2009-01-23 18:36:40 -0500 (Fri, 23 Jan 2009)
New Revision: 18261

Modified:
   torctl/trunk/python/TorCtl/TorCtl.py
Log:

Damnit.



Modified: torctl/trunk/python/TorCtl/TorCtl.py
===================================================================
--- torctl/trunk/python/TorCtl/TorCtl.py	2009-01-23 23:34:36 UTC (rev 18260)
+++ torctl/trunk/python/TorCtl/TorCtl.py	2009-01-23 23:36:40 UTC (rev 18261)
@@ -882,8 +882,8 @@
         raise ProtocolError("STREAM event misformatted.")
       ident,status,circ,target_host,target_port,reason,remote,source,source_addr,purpose = m.groups()
       ident,circ = map(int, (ident,circ))
-      if not target: # This can happen on SOCKS_PROTOCOL failures
-        target = "(none)"
+      if not target_host: # This can happen on SOCKS_PROTOCOL failures
+        target_host = "(none)"
       if reason: reason = reason[8:]
       if remote: remote = remote[15:]
       if source: source = source[8:]