summaryrefslogtreecommitdiffstats
path: root/net/base/x509_certificate_openssl.cc
diff options
context:
space:
mode:
authorJonathan Dixon <joth@google.com>2012-06-06 17:47:18 -0700
committerJonathan Dixon <joth@google.com>2012-06-07 10:39:44 -0700
commit95b2bad159f2dbca0555e82f156db8424b75c2b8 (patch)
tree110e6573035af6678ad5c924d1e21a8285f6b917 /net/base/x509_certificate_openssl.cc
parentf4dca79bcaa251f18d504a81766e3f5a6397ba43 (diff)
downloadexternal_chromium-95b2bad159f2dbca0555e82f156db8424b75c2b8.zip
external_chromium-95b2bad159f2dbca0555e82f156db8424b75c2b8.tar.gz
external_chromium-95b2bad159f2dbca0555e82f156db8424b75c2b8.tar.bz2
Work around for use-after-free cert bug
Holds a strong references in the cert cache. This is a simpler alternative to full backport of upstream fix, from http://crrev.com/92977 -- see bug for more details. BUG: 6508448 Change-Id: Ib47ca2e33b9e43ac47baf645069ecaab257ec74a
Diffstat (limited to 'net/base/x509_certificate_openssl.cc')
-rw-r--r--net/base/x509_certificate_openssl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/base/x509_certificate_openssl.cc b/net/base/x509_certificate_openssl.cc
index aecf75d..e541b34 100644
--- a/net/base/x509_certificate_openssl.cc
+++ b/net/base/x509_certificate_openssl.cc
@@ -385,7 +385,7 @@ X509Certificate::OSCertHandles X509Certificate::CreateOSCertHandlesFromBytes(
}
// static
-X509Certificate* X509Certificate::CreateSelfSigned(
+scoped_refptr<X509Certificate> X509Certificate::CreateSelfSigned(
crypto::RSAPrivateKey* key,
const std::string& subject,
uint32 serial_number,