[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Hotfix for strange bridges missing address fields.
commit 6db4d2beccab230bd40fb423da48ac2f336a5662
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits