[or-cvs] r24114: {arm} Misparsing family entries when there's no entry after the co (arm/trunk/src/interface)

Damian Johnson atagar1 at gmail.com
Thu Jan 20 03:28:00 UTC 2011


Author: atagar
Date: 2011-01-20 03:28:00 +0000 (Thu, 20 Jan 2011)
New Revision: 24114

Modified:
   arm/trunk/src/interface/connPanel.py
Log:
Misparsing family entries when there's no entry after the comma (caught by StrangeCharm)
https://trac.torproject.org/projects/tor/ticket/2414



Modified: arm/trunk/src/interface/connPanel.py
===================================================================
--- arm/trunk/src/interface/connPanel.py	2011-01-20 03:08:16 UTC (rev 24113)
+++ arm/trunk/src/interface/connPanel.py	2011-01-20 03:28:00 UTC (rev 24114)
@@ -878,6 +878,8 @@
     self.familyFingerprints = {}
     
     for familyEntry in self.family:
+      if not familyEntry: continue
+      
       if familyEntry[0] == "$":
         # relay identified by fingerprint
         self.familyFingerprints[familyEntry] = familyEntry[1:]



More information about the tor-commits mailing list