[tor-commits] r24613: {arm} Failed requests for our flags cause a syntax error (caught b (arm/trunk/src/interface/connections)

Damian Johnson atagar1 at gmail.com
Wed Apr 13 14:43:25 UTC 2011


Author: atagar
Date: 2011-04-13 14:43:25 +0000 (Wed, 13 Apr 2011)
New Revision: 24613

Modified:
   arm/trunk/src/interface/connections/connEntry.py
Log:
Failed requests for our flags cause a syntax error (caught by qbi)



Modified: arm/trunk/src/interface/connections/connEntry.py
===================================================================
--- arm/trunk/src/interface/connections/connEntry.py	2011-04-13 11:20:49 UTC (rev 24612)
+++ arm/trunk/src/interface/connections/connEntry.py	2011-04-13 14:43:25 UTC (rev 24613)
@@ -353,7 +353,7 @@
       # known relay then it might be client traffic
       
       conn = torTools.getConn()
-      if "Guard" in conn.getMyFlags() or conn.getOption("BridgeRelay") == "1":
+      if "Guard" in conn.getMyFlags([]) or conn.getOption("BridgeRelay") == "1":
         allMatches = conn.getRelayFingerprint(self.foreign.getIpAddr(), getAllMatches = True)
         return allMatches == []
     elif myType == Category.EXIT:



More information about the tor-commits mailing list