mod_auth_ccert: Use value from ipairs
authorKim Alvefur <zash@zash.se>
Sun, 30 Jun 2013 00:18:55 +0200
changeset 1092 f46307e8e2f8
parent 1091 79ef0427765f
child 1093 959e38a41a2e
mod_auth_ccert: Use value from ipairs
mod_auth_ccert/mod_auth_ccert.lua
--- a/mod_auth_ccert/mod_auth_ccert.lua	Fri Jun 28 03:24:35 2013 +0200
+++ b/mod_auth_ccert/mod_auth_ccert.lua	Sun Jun 30 00:18:55 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[i], ", "));
+					(session.log or log)("warn", "%d: %s", i, table.concat(error, ", "));
 				end
 				return nil, false;
 			end