Changeset

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
parents 1069:d7719bf1aed6
children 1071:8f59b45fe6a7
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 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