# HG changeset patch # User Kim Alvefur # Date 1513823038 -3600 # Node ID 13f381f0c03ff340b46b4908bc23cb7744e56612 # Parent b3e82e2b818e9f3d1a5d78a6147348fa05c78943 mod_s2s_auth_posh: Abort if no fingerprints are found diff -r b3e82e2b818e -r 13f381f0c03f mod_s2s_auth_posh/mod_s2s_auth_posh.lua --- a/mod_s2s_auth_posh/mod_s2s_auth_posh.lua Thu Dec 21 03:23:46 2017 +0100 +++ b/mod_s2s_auth_posh/mod_s2s_auth_posh.lua Thu Dec 21 03:23:58 2017 +0100 @@ -86,6 +86,11 @@ local jwk = posh and posh.jwk; local fingerprints = jwk and jwk.fingerprints; + if not fingerprints then + log("debug", "No POSH authentication data available"); + return; + end + local cert_der = pem2der(cert:pem()); local cert_hashes = {}; for i = 1, #hash_order do