Skip to content

Commit 3e8ae12

Browse files
committed
ssl: remove a needless NULL check in SSL::SSLContext#ciphers
1 parent dd05b49 commit 3e8ae12

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ext/openssl/ossl_ssl.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -970,12 +970,7 @@ ossl_sslctx_get_ciphers(VALUE self)
970970
int i, num;
971971

972972
GetSSLCTX(self, ctx);
973-
if(!ctx){
974-
rb_warning("SSL_CTX is not initialized.");
975-
return Qnil;
976-
}
977973
ciphers = SSL_CTX_get_ciphers(ctx);
978-
979974
if (!ciphers)
980975
return rb_ary_new();
981976

0 commit comments

Comments
 (0)