We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76b8803 commit 1ab7c6bCopy full SHA for 1ab7c6b
src/node_crypto.cc
@@ -5618,15 +5618,10 @@ void GetSSLCiphers(const FunctionCallbackInfo<Value>& args) {
5618
Environment* env = Environment::GetCurrent(args);
5619
5620
SSL_CTX* ctx = SSL_CTX_new(TLSv1_server_method());
5621
- if (ctx == nullptr) {
5622
- return env->ThrowError("SSL_CTX_new() failed.");
5623
- }
+ CHECK_NE(ctx, nullptr);
5624
5625
SSL* ssl = SSL_new(ctx);
5626
- if (ssl == nullptr) {
5627
- SSL_CTX_free(ctx);
5628
- return env->ThrowError("SSL_new() failed.");
5629
+ CHECK_NE(ssl, nullptr);
5630
5631
Local<Array> arr = Array::New(env->isolate());
5632
STACK_OF(SSL_CIPHER)* ciphers = SSL_get_ciphers(ssl);
0 commit comments