diff --git a/mozilla/netwerk/dns/src/nsEffectiveTLDService.cpp b/mozilla/netwerk/dns/src/nsEffectiveTLDService.cpp index cd14ce06400..140087aaa38 100644 --- a/mozilla/netwerk/dns/src/nsEffectiveTLDService.cpp +++ b/mozilla/netwerk/dns/src/nsEffectiveTLDService.cpp @@ -148,8 +148,8 @@ nsEffectiveTLDService::GetEffectiveTLDLength(const nsACString &aHostname, *effTLDLength = end - prevDomain; break; - } else if (entry->IsNormal()) { - // specific match + } else if (entry->IsNormal() || !nextDot) { + // specific match, or we've hit the top domain level *effTLDLength = end - currDomain; break;