summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r--src/lib/libssl/ssl_lib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 828aa3a08d..73bc05e967 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.228 2020/09/15 11:47:49 jsing Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.229 2020/09/16 07:25:15 schwarze Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1336,6 +1336,8 @@ SSL_get_cipher_list(const SSL *s, int n)
1336STACK_OF(SSL_CIPHER) * 1336STACK_OF(SSL_CIPHER) *
1337SSL_CTX_get_ciphers(const SSL_CTX *ctx) 1337SSL_CTX_get_ciphers(const SSL_CTX *ctx)
1338{ 1338{
1339 if (ctx == NULL)
1340 return NULL;
1339 return ctx->cipher_list; 1341 return ctx->cipher_list;
1340} 1342}
1341 1343