diff --git a/ssl/ssl_lib.cc b/ssl/ssl_lib.cc index 73ed5abfa1..9b9aee0542 100644 --- a/ssl/ssl_lib.cc +++ b/ssl/ssl_lib.cc @@ -2172,8 +2172,7 @@ STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *ssl) { return ssl->config->cipher_list->ciphers.get(); } - return ssl->ctx && ssl->ctx->cipher_list ? - ssl->ctx->cipher_list->ciphers.get() : NULL; + return ssl->ctx->cipher_list->ciphers.get(); } const char *SSL_get_cipher_list(const SSL *ssl, int n) {