From: Bodo Möller Date: Fri, 24 Sep 1999 20:27:20 +0000 (+0000) Subject: Bugfix: avoid opening CAfile when it's NULL. X-Git-Tag: OpenSSL_0_9_5beta1~503 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=4ad378ea4329255adae942393413751b33beeaaf Bugfix: avoid opening CAfile when it's NULL. --- 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)