From: Nick Mathewson Date: Wed, 21 Oct 2015 16:01:05 +0000 (-0400) Subject: Fix the return value X-Git-Tag: tor-0.2.7.4-rc~5^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9459ae260e3ae428283c3b45d08aaef6ef9f6fa3;p=thirdparty%2Ftor.git Fix the return value --- diff --git a/src/common/tortls.c b/src/common/tortls.c index 75ca47dbdb..840b677cb7 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);