Skip to content

Commit

Permalink
remove redundant checks
Browse files Browse the repository at this point in the history
  • Loading branch information
smittals2 committed Feb 19, 2025
1 parent bf9b60e commit 7d1f3b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ssl/ssl_lib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7d1f3b5

Please sign in to comment.