Bugfix: avoid opening CAfile when it's NULL.
authorBodo Möller <bodo@openssl.org>
Fri, 24 Sep 1999 20:27:20 +0000 (20:27 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 24 Sep 1999 20:27:20 +0000 (20:27 +0000)
apps/s_server.c

index 3ed008c..e54593d 100644 (file)
@@ -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)