Mercurial > prosody-modules
diff mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 1434:1caf971a2f0f
mod_s2s_auth_dane: Return if no certificate found
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 12 Jun 2014 12:30:39 +0200 |
parents | 33a796b2cb91 |
children | cdc8f226a284 |
line wrap: on
line diff
--- 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