aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-08-06 14:32:31 +0200
committerKim Alvefur <zash@zash.se>2013-08-06 14:32:31 +0200
commit2d80fe3bbd1722cc703390bd9055902f7dd843bf (patch)
tree862e12621cdd1148557645a13d0b8d310acf90f7 /plugins/mod_s2s
parent8e182dcbb67dfca09f5c00d48d46c2e5a635a63d (diff)
downloadprosody-2d80fe3bbd1722cc703390bd9055902f7dd843bf.tar.gz
prosody-2d80fe3bbd1722cc703390bd9055902f7dd843bf.zip
mod_admin_telnet, mod_s2s: Fix reporting of certificate chain validation details
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index 95015526..bb46cd2f 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -239,7 +239,7 @@ local function check_cert_status(session)
-- Is there any interest in printing out all/the number of errors here?
if not chain_valid then
(session.log or log)("debug", "certificate chain validation result: invalid");
- for depth, t in ipairs(errors or NULL) do
+ for depth, t in pairs(errors or NULL) do
(session.log or log)("debug", "certificate error(s) at depth %d: %s", depth-1, table.concat(t, ", "))
end
session.cert_chain_status = "invalid";