diff --git a/src/quic/node_quic_crypto.cc b/src/quic/node_quic_crypto.cc index 4b4ec901001f40..560c806917199f 100644 --- a/src/quic/node_quic_crypto.cc +++ b/src/quic/node_quic_crypto.cc @@ -384,7 +384,7 @@ bool CheckCertNames( return false; } - if (name_parts[0].find("*") == std::string::npos || + if (name_parts[0].find('*') == std::string::npos || name_parts[0].find("xn--") != std::string::npos) { return host_parts[0] == name_parts[0]; } diff --git a/src/quic/node_quic_util.h b/src/quic/node_quic_util.h index e1490941aa3224..d698a6df0b4041 100644 --- a/src/quic/node_quic_util.h +++ b/src/quic/node_quic_util.h @@ -114,7 +114,7 @@ class StatsBase { // A StatsBase instance may have one of three histogram // instances. One that records rate of data flow, one // that records size of data chunk, and one that records - // rate of data ackwowledgement. These may be used in + // rate of data acknowledgement. These may be used in // slightly different ways of different StatsBase // instances or may be turned off entirely. enum HistogramOptions {