| Index: net/cert/x509_certificate_nss.cc
|
| diff --git a/net/cert/x509_certificate_nss.cc b/net/cert/x509_certificate_nss.cc
|
| index 4e6380648a30d469ae94147f8e705f4931ee187d..8681b3c2f35efc0ef0e7f3482726c32debd0cefb 100644
|
| --- a/net/cert/x509_certificate_nss.cc
|
| +++ b/net/cert/x509_certificate_nss.cc
|
| @@ -285,8 +285,12 @@ bool X509Certificate::IsSelfSigned(OSCertHandle cert_handle) {
|
| crypto::ScopedSECKEYPublicKey public_key(CERT_ExtractPublicKey(cert_handle));
|
| if (!public_key.get())
|
| return false;
|
| - return SECSuccess == CERT_VerifySignedDataWithPublicKey(
|
| - &cert_handle->signatureWrap, public_key.get(), NULL);
|
| + if (SECSuccess != CERT_VerifySignedDataWithPublicKey(
|
| + &cert_handle->signatureWrap, public_key.get(), NULL)) {
|
| + return false;
|
| + }
|
| + return CERT_CompareName(&cert_handle->subject, &cert_handle->issuer) ==
|
| + SECEqual;
|
| }
|
|
|
| } // namespace net
|
|
|