Fix the return value

This commit is contained in:
Nick Mathewson 2015-10-21 12:01:05 -04:00
parent 35bf07b8d6
commit 9459ae260e

View File

@ -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);