[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-db/master] Fix embarrassing bug in bridge descriptor sanitizer.



commit 7b2845e1bba2c4a8f13eab936befdc29151862f3
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits