diff options
author | Bodo Möller <bodo@openssl.org> | 1999-09-24 20:27:20 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-09-24 20:27:20 +0000 |
commit | 4ad378ea4329255adae942393413751b33beeaaf (patch) | |
tree | 8b427fbed6fef31ae4692d852fd9479b69ae715d /apps | |
parent | 0ca6d7c6b1e73d17ca67b7ffd8435bde43bf50af (diff) |
Bugfix: avoid opening CAfile when it's NULL.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_server.c | 3 |
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) |