[tor-commits] [bridgedb/develop] Hotfix for strange bridges missing address fields.
isis at torproject.org
isis at torproject.org
Mon May 21 18:49:29 UTC 2018
commit 6db4d2beccab230bd40fb423da48ac2f336a5662
Author: Isis Lovecruft <isis at torproject.org>
Date: Mon May 21 18:27:28 2018 +0000
Hotfix for strange bridges missing address fields.
---
bridgedb/Bridges.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/bridgedb/Bridges.py b/bridgedb/Bridges.py
index dfc6ac5..7257617 100644
--- a/bridgedb/Bridges.py
+++ b/bridgedb/Bridges.py
@@ -280,6 +280,13 @@ class BridgeRing(object):
for fingerprint in fingerprints:
bridge = self.bridges[fingerprint]
jump = False
+
+ # HOTFIX for https://bugs.torproject.org/26150
+ if not bridge.address:
+ logging.error("Got strange bridge with no address field set: %s"
+ % fingerprint)
+ continue
+
for subnet in subnets:
if bridge.address in subnet:
jump = True
More information about the tor-commits
mailing list