Changeset

1092:f46307e8e2f8

mod_auth_ccert: Use value from ipairs
author Kim Alvefur <zash@zash.se>
date Sun, 30 Jun 2013 00:18:55 +0200
parents 1091:79ef0427765f
children 1093:959e38a41a2e
files mod_auth_ccert/mod_auth_ccert.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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