# HG changeset patch # User Kim Alvefur # Date 1402569039 -7200 # Node ID 1caf971a2f0f6aaef0fed2ab2030e0645c3c721d # Parent df8da7e4c2bfd6665ec6b5ac20a7db8fc6db1a4f mod_s2s_auth_dane: Return if no certificate found diff -r df8da7e4c2bf -r 1caf971a2f0f mod_s2s_auth_dane/mod_s2s_auth_dane.lua --- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Wed Jun 11 20:38:41 2014 +0200 +++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Thu Jun 12 12:30:39 2014 +0200 @@ -176,6 +176,7 @@ module:hook("s2s-check-certificate", function(event) local session, cert = event.session, event.cert; + if not cert then return end local log = session.log or module._log; local dane = session.dane; if type(dane) == "table" then