[tor-commits] [metrics-lib/master] Fix a bug in the vote parser.
karsten at torproject.org
karsten at torproject.org
Thu Dec 15 20:47:20 UTC 2011
commit 57bd584c646fa1d6fab7ef17d8a5dd774bba3d2d
Author: Karsten Loesing <karsten.loesing at gmx.net>
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?
More information about the tor-commits
mailing list