summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-09-24 20:27:20 +0000
committerBodo Möller <bodo@openssl.org>1999-09-24 20:27:20 +0000
commit4ad378ea4329255adae942393413751b33beeaaf (patch)
tree8b427fbed6fef31ae4692d852fd9479b69ae715d /apps
parent0ca6d7c6b1e73d17ca67b7ffd8435bde43bf50af (diff)
Bugfix: avoid opening CAfile when it's NULL.
Diffstat (limited to 'apps')
-rw-r--r--apps/s_server.c3
1 files changed, 2 insertions, 1 deletions
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)