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

[tor-commits] [tor/maint-0.2.5] Fix the return value



commit 9459ae260e3ae428283c3b45d08aaef6ef9f6fa3
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits