| Index: crypto/rsa_private_key_openssl.cc
|
| diff --git a/crypto/rsa_private_key_openssl.cc b/crypto/rsa_private_key_openssl.cc
|
| index bd00a7382aa14478d77836918a873fb1cd8b6fc6..e3cf04c9bb3e7e8611a684329a64bc1a98eee118 100644
|
| --- a/crypto/rsa_private_key_openssl.cc
|
| +++ b/crypto/rsa_private_key_openssl.cc
|
| @@ -107,11 +107,11 @@ RSAPrivateKey::~RSAPrivateKey() {
|
|
|
| RSAPrivateKey* RSAPrivateKey::Copy() const {
|
| scoped_ptr<RSAPrivateKey> copy(new RSAPrivateKey());
|
| - RSA* rsa = EVP_PKEY_get1_RSA(key_);
|
| + ScopedRSA rsa(EVP_PKEY_get1_RSA(key_));
|
| if (!rsa)
|
| return NULL;
|
| copy->key_ = EVP_PKEY_new();
|
| - if (!EVP_PKEY_set1_RSA(copy->key_, rsa))
|
| + if (!EVP_PKEY_set1_RSA(copy->key_, rsa.get()))
|
| return NULL;
|
| return copy.release();
|
| }
|
|
|