diff options
author | Brian Carlstrom <bdc@google.com> | 2013-03-20 22:11:06 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-03-20 22:11:06 -0700 |
commit | e94dde5369da5f3983f13004fa492a48a7eae540 (patch) | |
tree | cfbd8923d7b72676005917cd9c830b1ecb5af933 /luni | |
parent | 0f7e3bb45f03a1b54cc1d6c0b9df608d9607f24d (diff) | |
download | libcore-e94dde5369da5f3983f13004fa492a48a7eae540.zip libcore-e94dde5369da5f3983f13004fa492a48a7eae540.tar.gz libcore-e94dde5369da5f3983f13004fa492a48a7eae540.tar.bz2 |
Throw a more detailed exception on failure in NativeCrypto_SSL_CTX_new
Bug: 8172001
Change-Id: I39ca6d7480ad0c4dc6628c412e73fc2b5bf01689
Diffstat (limited to 'luni')
-rw-r--r-- | luni/src/main/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/luni/src/main/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp b/luni/src/main/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp index ce2e2ee..ee6a57e 100644 --- a/luni/src/main/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp +++ b/luni/src/main/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp @@ -5985,7 +5985,7 @@ static EC_KEY* tmp_ecdh_callback(SSL* ssl __attribute__ ((unused)), static jlong NativeCrypto_SSL_CTX_new(JNIEnv* env, jclass) { Unique_SSL_CTX sslCtx(SSL_CTX_new(SSLv23_method())); if (sslCtx.get() == NULL) { - jniThrowRuntimeException(env, "SSL_CTX_new"); + throwExceptionIfNecessary(env, "SSL_CTX_new"); return 0; } SSL_CTX_set_options(sslCtx.get(), |