From 4ad378ea4329255adae942393413751b33beeaaf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Fri, 24 Sep 1999 20:27:20 +0000 Subject: [PATCH] Bugfix: avoid opening CAfile when it's NULL. --- apps/s_server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/s_server.c b/apps/s_server.c index 3ed008c3cf..e54593d551 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -699,7 +699,8 @@ bad: SSL_CTX_set_session_id_context(ctx,(void*)&s_server_session_id_context, sizeof s_server_session_id_context); - SSL_CTX_set_client_CA_list(ctx,SSL_load_client_CA_file(CAfile)); + if (CAfile != NULL) + SSL_CTX_set_client_CA_list(ctx,SSL_load_client_CA_file(CAfile)); BIO_printf(bio_s_out,"ACCEPT\n"); if (www) -- 2.25.1