[tor-commits] [metrics-lib/master] Stop reporting some lines in certificates as unrecognized.

karsten at torproject.org karsten at torproject.org
Tue May 31 18:49:22 UTC 2016


commit 2cd927286d15b92b1eb2663a4db3ca7dadf70a67
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Fri May 20 11:33:01 2016 +0200

    Stop reporting some lines in certificates as unrecognized.
---
 CHANGELOG.md                                                        | 2 ++
 src/org/torproject/descriptor/impl/DirectoryKeyCertificateImpl.java | 1 +
 2 files changed, 3 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index ff233ff..e5789c1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,8 @@
  * Minor changes
    - Include a Torperf results line with more than one unrecognized
      key only once in the unrecognized lines.
+   - Stop reporting "-----END .*-----" lines in directory key
+     certificates as unrecognized.
 
 
 # Changes in version 1.1.0 - 2015-12-28
diff --git a/src/org/torproject/descriptor/impl/DirectoryKeyCertificateImpl.java b/src/org/torproject/descriptor/impl/DirectoryKeyCertificateImpl.java
index 1039bbd..13baedb 100644
--- a/src/org/torproject/descriptor/impl/DirectoryKeyCertificateImpl.java
+++ b/src/org/torproject/descriptor/impl/DirectoryKeyCertificateImpl.java
@@ -124,6 +124,7 @@ public class DirectoryKeyCertificateImpl extends DescriptorImpl
               + "block in directory key certificate.");
         }
         nextCrypto = "";
+        break;
       default:
         if (crypto != null) {
           crypto.append(line).append("\n");





More information about the tor-commits mailing list