1
0
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:
Stefan Fritsch
2010-10-25 19:13:20 +00:00
parent 89ba4431dc
commit 7b9471c76f

View File

@@ -658,7 +658,7 @@ static void ssl_init_ctx_verify(server_rec *s,
ca_list = ssl_init_FindCAList(s, ptemp,
mctx->auth.ca_cert_file,
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,
"Unable to determine list of acceptable "
"CA certificates for client authentication");