[or-cvs] fix a tor-resolve bug that could not possibly have ever wor...

Roger Dingledine arma at seul.org
Tue Nov 9 09:27:36 UTC 2004


Update of /home/or/cvsroot/contrib
In directory moria.mit.edu:/home2/arma/work/onion/cvs/contrib

Modified Files:
	tor-resolve.py 
Log Message:
fix a tor-resolve bug that could not possibly have ever worked but
python is too braindead^Wflexible to be able to tell us


Index: tor-resolve.py
===================================================================
RCS file: /home/or/cvsroot/contrib/tor-resolve.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- tor-resolve.py	28 Oct 2004 20:30:10 -0000	1.1
+++ tor-resolve.py	9 Nov 2004 09:27:34 -0000	1.2
@@ -40,7 +40,7 @@
     port = 0
     atype = 0x03
     reqheader = struct.pack("!BBBB",version, command, rsv, atype)
-    portstr = struct.pach("!H",port)
+    portstr = struct.pack("!H",port)
     return "%s%s\0%s"%(reqheader,hostname,port)
 def socks5ParseResponse(r):
     if len(r)<8: return None



More information about the tor-commits mailing list