Changeset

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 1433:df8da7e4c2bf
children 1435:cdc8f226a284
files mod_s2s_auth_dane/mod_s2s_auth_dane.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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