diff options
author | Kim Alvefur <zash@zash.se> | 2013-08-06 14:32:31 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-08-06 14:32:31 +0200 |
commit | 06cb72f2027a8afb0b8d47b69d87dd407a89587a (patch) | |
tree | 862e12621cdd1148557645a13d0b8d310acf90f7 /plugins | |
parent | 41512df16f42709dbd9d0d5461e9e9a01606eb20 (diff) | |
download | prosody-06cb72f2027a8afb0b8d47b69d87dd407a89587a.tar.gz prosody-06cb72f2027a8afb0b8d47b69d87dd407a89587a.zip |
mod_admin_telnet, mod_s2s: Fix reporting of certificate chain validation details
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_telnet.lua | 2 | ||||
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index b942e9bd..131689c5 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -673,7 +673,7 @@ end -- I think there's going to be more confusion among operators if we -- break from that. local function print_errors(print, errors) - for depth, t in ipairs(errors) do + for depth, t in pairs(errors) do print( (" %d: %s"):format( depth-1, 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"; |