Diff

mod_auth_ccert/mod_auth_ccert.lua @ 1070:dee31eeae7ae

mod_auth_ccert: Fix logging of certificate chain errors
author Kim Alvefur <zash@zash.se>
date Fri, 14 Jun 2013 20:29:15 +0200
parent 1069:d7719bf1aed6
child 1092:f46307e8e2f8
line wrap: on
line diff
--- a/mod_auth_ccert/mod_auth_ccert.lua	Fri Jun 14 20:28:23 2013 +0200
+++ b/mod_auth_ccert/mod_auth_ccert.lua	Fri Jun 14 20:29:15 2013 +0200
@@ -81,7 +81,7 @@
 			if not chain_valid then
 				(session.log or log)("warn", "Invalid client certificate chain");
 				for i, error in ipairs(chain_errors) do
-					(session.log or log)("warn", "%d: %s", i, table.concat(chain_errors, ", "));
+					(session.log or log)("warn", "%d: %s", i, table.concat(chain_errors[i], ", "));
 				end
 				return nil, false;
 			end