| Index: net/cert/cert_verify_proc_nss.cc
|
| diff --git a/net/cert/cert_verify_proc_nss.cc b/net/cert/cert_verify_proc_nss.cc
|
| index 0a0743c150d7a5487a6758d423093bf1f21008c2..31c38c7fc1c9cef5848fb5e02db9e9ac8e6b7854 100644
|
| --- a/net/cert/cert_verify_proc_nss.cc
|
| +++ b/net/cert/cert_verify_proc_nss.cc
|
| @@ -763,9 +763,10 @@ int CertVerifyProcNSS::VerifyInternal(
|
| CERTCertificate* cert_handle = cert->os_cert_handle();
|
| #endif // defined(OS_IOS)
|
|
|
| - // Make sure that the hostname matches with the common name of the cert.
|
| - if (!cert->VerifyNameMatch(hostname))
|
| + if (!cert->VerifyNameMatch(hostname,
|
| + &verify_result->common_name_fallback_used)) {
|
| verify_result->cert_status |= CERT_STATUS_COMMON_NAME_INVALID;
|
| + }
|
|
|
| // Make sure that the cert is valid now.
|
| SECCertTimeValidity validity = CERT_CheckCertValidTimes(
|
|
|