mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
handle the ca_list == NULL case correctly (which can only happen with out
of memory, anyway) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1027239 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -658,7 +658,7 @@ static void ssl_init_ctx_verify(server_rec *s,
|
|||||||
ca_list = ssl_init_FindCAList(s, ptemp,
|
ca_list = ssl_init_FindCAList(s, ptemp,
|
||||||
mctx->auth.ca_cert_file,
|
mctx->auth.ca_cert_file,
|
||||||
mctx->auth.ca_cert_path);
|
mctx->auth.ca_cert_path);
|
||||||
if (sk_X509_NAME_num(ca_list) == 0) {
|
if (sk_X509_NAME_num(ca_list) <= 0) {
|
||||||
ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s,
|
ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s,
|
||||||
"Unable to determine list of acceptable "
|
"Unable to determine list of acceptable "
|
||||||
"CA certificates for client authentication");
|
"CA certificates for client authentication");
|
||||||
|
Reference in New Issue
Block a user