[tor-commits] [tor/release-0.2.7] Fix the return value

nickm at torproject.org nickm at torproject.org
Wed Oct 21 17:37:11 UTC 2015


commit 9459ae260e3ae428283c3b45d08aaef6ef9f6fa3
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Oct 21 12:01:05 2015 -0400

    Fix the return value
---
 src/common/tortls.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/tortls.c b/src/common/tortls.c
index 75ca47d..840b677 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -2678,7 +2678,7 @@ dn_indicates_v3_cert(X509_NAME *name)
     return 0;
   if (len < 4) {
     OPENSSL_free(s);
-    return 0;
+    return 1;
   }
   r = fast_memneq(s + len - 4, ".net", 4);
   OPENSSL_free(s);





More information about the tor-commits mailing list