From 7d1f3b54123394a95894fb6b9484f80951df38a8 Mon Sep 17 00:00:00 2001 From: Shubham Mittal Date: Wed, 19 Feb 2025 14:56:51 -0800 Subject: [PATCH] remove redundant checks --- ssl/ssl_lib.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {