Merge remote-tracking branch 'public/bug17404_024' into maint-0.2.7

This commit is contained in:
Nick Mathewson
2015-10-21 11:51:03 -04:00
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -2521,6 +2521,10 @@ dn_indicates_v3_cert(X509_NAME *name)
len = ASN1_STRING_to_UTF8(&s, str);
if (len < 0)
return 0;
if (len < 4) {
OPENSSL_free(s);
return 0;
}
r = fast_memneq(s + len - 4, ".net", 4);
OPENSSL_free(s);
return r;