changeset 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
parents 3eee4029ac6c
children 87769f53fdc8
files mod_s2s_auth_posh/mod_s2s_auth_posh.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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