From e94dde5369da5f3983f13004fa492a48a7eae540 Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Wed, 20 Mar 2013 22:11:06 -0700 Subject: Throw a more detailed exception on failure in NativeCrypto_SSL_CTX_new Bug: 8172001 Change-Id: I39ca6d7480ad0c4dc6628c412e73fc2b5bf01689 --- .../main/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'luni') 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(), -- cgit v1.1