aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-07-05 22:17:42 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-07-06 23:59:20 +0900
commit3e8ae1212262373de202c5303c320070debc062d (patch)
treef55403073c81ca843abc0c0193e847691795bc0f /ext/openssl
parentdd05b499fd660f6fd3ad1b95045933b92ae710c6 (diff)
downloadruby-openssl-3e8ae1212262373de202c5303c320070debc062d.tar.gz
ssl: remove a needless NULL check in SSL::SSLContext#ciphers
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/ossl_ssl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
index ae03c164..b8367c84 100644
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
@@ -970,12 +970,7 @@ ossl_sslctx_get_ciphers(VALUE self)
int i, num;
GetSSLCTX(self, ctx);
- if(!ctx){
- rb_warning("SSL_CTX is not initialized.");
- return Qnil;
- }
ciphers = SSL_CTX_get_ciphers(ctx);
-
if (!ciphers)
return rb_ary_new();