# HG changeset patch # User Kim Alvefur # Date 1535220045 -7200 # Node ID f0e19a77f81ec12c41d3cb82235cd9543aa98879 # Parent 4d1f6d47c8891962c17cb81506fd73efcf3cc790 mod_s2s_auth_posh: Ensure JWK data decodes to a table diff -r 4d1f6d47c889 -r f0e19a77f81e mod_s2s_auth_posh/mod_s2s_auth_posh.lua --- a/mod_s2s_auth_posh/mod_s2s_auth_posh.lua Sat Aug 25 17:55:16 2018 +0200 +++ b/mod_s2s_auth_posh/mod_s2s_auth_posh.lua Sat Aug 25 20:00:45 2018 +0200 @@ -54,7 +54,7 @@ end log("debug", "Received POSH response"); local jwk = json.decode(response); - if not jwk then + if not jwk or type(jwk) ~= "table" then log("error", "POSH response is not valid JSON!\n%s", tostring(response)); resume(); return;