| Index: net/cert/cert_verify_proc.cc
|
| diff --git a/net/cert/cert_verify_proc.cc b/net/cert/cert_verify_proc.cc
|
| index 8fdd93cbb1bb0c4720273867ee9c9de3fb723ed6..57ed53f029eb1d9f2d4d3a2a1fceaa060a083948 100644
|
| --- a/net/cert/cert_verify_proc.cc
|
| +++ b/net/cert/cert_verify_proc.cc
|
| @@ -531,13 +531,11 @@ static bool CheckNameConstraints(const std::vector<std::string>& dns_names,
|
| if (host_info.IsIPAddress())
|
| continue;
|
|
|
| - const size_t registry_len = registry_controlled_domains::GetRegistryLength(
|
| - dns_name,
|
| - registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
|
| - registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES);
|
| // If the name is not in a known TLD, ignore it. This permits internal
|
| // names.
|
| - if (registry_len == 0)
|
| + if (!registry_controlled_domains::HostHasRegistryControlledDomain(
|
| + dns_name, registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
|
| + registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES))
|
| continue;
|
|
|
| for (size_t j = 0; domains[j][0]; ++j) {
|
|
|