diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/base/x509_certificate_mac.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/base/x509_certificate_mac.cc b/net/base/x509_certificate_mac.cc index d69b87f..d2556d7 100644 --- a/net/base/x509_certificate_mac.cc +++ b/net/base/x509_certificate_mac.cc @@ -1148,9 +1148,9 @@ int X509Certificate::VerifyInternal(const std::string& hostname, if (copy_extended_result) { CFDictionaryRef ev_dict_temp = NULL; status = copy_extended_result(trust_ref, &ev_dict_temp); - base::mac::ScopedCFTypeRef<CFDictionaryRef> ev_dict(ev_dict_temp); + ScopedCFTypeRef<CFDictionaryRef> ev_dict(ev_dict_temp); ev_dict_temp = NULL; - if (status == noErr) { + if (status == noErr && ev_dict) { // In 10.7.3, SecTrustCopyExtendedResult returns noErr and populates // ev_dict even for non-EV certificates, but only EV certificates // will cause ev_dict to contain kSecEVOrganizationName. In previous |