commit 7b2845e1bba2c4a8f13eab936befdc29151862f3 Author: Karsten Loesing karsten.loesing@gmx.net Date: Thu Mar 10 10:00:44 2011 +0100
Fix embarrassing bug in bridge descriptor sanitizer. --- .../ernie/db/BridgeDescriptorParser.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/org/torproject/ernie/db/BridgeDescriptorParser.java b/src/org/torproject/ernie/db/BridgeDescriptorParser.java index 9453088..95071a3 100644 --- a/src/org/torproject/ernie/db/BridgeDescriptorParser.java +++ b/src/org/torproject/ernie/db/BridgeDescriptorParser.java @@ -22,7 +22,7 @@ public class BridgeDescriptorParser { new String(allData, "US-ASCII"))); boolean skip = false; String line = br.readLine(); - if (line != null) { + if (line == null) { return; } else if (line.startsWith("r ")) { if (this.sbw != null) {
tor-commits@lists.torproject.org