Index: net/android/keystore_openssl.cc |
diff --git a/net/android/keystore_openssl.cc b/net/android/keystore_openssl.cc |
index fb0365c6a8d53f9500631b2be276b0acbde6dda0..a4508d618a6861294865eb7e2645874787d37a4e 100644 |
--- a/net/android/keystore_openssl.cc |
+++ b/net/android/keystore_openssl.cc |
@@ -351,7 +351,7 @@ crypto::ScopedEVP_PKEY CreateRsaPkeyWrapper( |
!EVP_PKEY_set1_RSA(pkey.get(), rsa.get())) { |
return crypto::ScopedEVP_PKEY(); |
} |
- return pkey.Pass(); |
+ return pkey; |
} |
// On Android < 4.2, the libkeystore.so ENGINE uses CRYPTO_EX_DATA and is not |
@@ -526,7 +526,7 @@ crypto::ScopedEVP_PKEY GetEcdsaPkeyWrapper(jobject private_key) { |
!EVP_PKEY_set1_EC_KEY(pkey.get(), ec_key.get())) { |
return crypto::ScopedEVP_PKEY(); |
} |
- return pkey.Pass(); |
+ return pkey; |
} |
const ECDSA_METHOD android_ecdsa_method = { |