am 106f9b24: Patch from Huahui Wu.

Merge commit '106f9b244633171ab75dd98b9761b7137c1a4705' into eclair-mr2-plus-aosp

* commit '106f9b244633171ab75dd98b9761b7137c1a4705':
  Patch from Huahui Wu.
This commit is contained in:
Grace Kloba
2010-01-05 11:20:18 -08:00
committed by Android Git Automerger

View File

@@ -231,7 +231,7 @@ public class DomainNameChecker {
rval = thisDomainTokens[i].equals(thatDomainTokens[i]);
if (!rval) {
// (c) OR we have a special *-match:
// Z.Y.X matches *.Y.X but does not match *.X
// *.Y.X matches Z.Y.X but *.X doesn't match Z.Y.X
rval = (i == 0 && thisDomainTokensNum == thatDomainTokensNum);
if (rval) {
rval = thatDomainTokens[0].equals("*");
@@ -242,10 +242,13 @@ public class DomainNameChecker {
thisDomainTokens[0], thatDomainTokens[0]);
}
}
break;
}
}
} else {
// (e) OR thatHost has a '*.'-prefix of thisHost:
// *.Y.X matches Y.X
rval = thatDomain.equals("*." + thisDomain);
}
}