Bugfix: avoid opening CAfile when it's NULL.
This commit is contained in:
parent
0ca6d7c6b1
commit
4ad378ea43
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue