]> granicus.if.org Git - apache/commitdiff
handle the ca_list == NULL case correctly (which can only happen with out
authorStefan Fritsch <sf@apache.org>
Mon, 25 Oct 2010 19:13:20 +0000 (19:13 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 25 Oct 2010 19:13:20 +0000 (19:13 +0000)
of memory, anyway)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1027239 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_init.c

index 4cfa1d3b7d87ffb93e41705979fe147bf2c63593..cebef3240870e5d3a412e1df91cd9cf940365dec 100644 (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");