Software /
code /
prosody-modules
Diff
mod_s2s_auth_posh/mod_s2s_auth_posh.lua @ 3289:f2037a754480
mod_s2s_auth_posh: Be a tiny bit stricter with types
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 25 Aug 2018 20:10:21 +0200 |
parent | 3288:3eee4029ac6c |
child | 4441:58a112bd9792 |
line wrap: on
line diff
--- a/mod_s2s_auth_posh/mod_s2s_auth_posh.lua Sat Aug 25 20:02:40 2018 +0200 +++ b/mod_s2s_auth_posh/mod_s2s_auth_posh.lua Sat Aug 25 20:10:21 2018 +0200 @@ -99,7 +99,7 @@ local jwk = posh and posh.jwk; local fingerprints = jwk and jwk.fingerprints; - if not fingerprints then + if type(fingerprints) ~= "table" then log("debug", "No POSH authentication data available"); return; end