commit 57bd584c646fa1d6fab7ef17d8a5dd774bba3d2d
Author: Karsten Loesing <[email protected]>
Date:   Thu Dec 15 21:30:00 2011 +0100

    Fix a bug in the vote parser.
---
 .../impl/RelayNetworkStatusVoteImpl.java           |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/org/torproject/descriptor/impl/RelayNetworkStatusVoteImpl.java 
b/src/org/torproject/descriptor/impl/RelayNetworkStatusVoteImpl.java
index 5089210..fd17e7b 100644
--- a/src/org/torproject/descriptor/impl/RelayNetworkStatusVoteImpl.java
+++ b/src/org/torproject/descriptor/impl/RelayNetworkStatusVoteImpl.java
@@ -267,7 +267,7 @@ public class RelayNetworkStatusVoteImpl extends 
NetworkStatusImpl
             keyword.equals("dir-key-certification")) {
         } else if (line.startsWith("-----BEGIN")) {
           skipCrypto = true;
-        } else if (line.equals("-----END")) {
+        } else if (line.startsWith("-----END")) {
           skipCrypto = false;
         } else if (!skipCrypto) {
           /* TODO Is throwing an exception the right thing to do here?



_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to