mod_s2s_auth_dane/mod_s2s_auth_dane.lua
changeset 1337 c38f163f18b9
parent 1336 ae0558230e3d
child 1338 eca8c480891e
--- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Sun Mar 09 13:44:29 2014 +0100
+++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Sun Mar 09 14:09:24 2014 +0100
@@ -130,7 +130,7 @@
 	-- Looks for TLSA at the same QNAME as the SRV record
 	module:hook("s2s-stream-features", function(event)
 		local origin = event.origin;
-		if not origin.from_host or origin.dane == nil then return end
+		if not origin.from_host or origin.dane ~= nil then return end
 
 		origin.dane = dns_lookup(function(answer)
 			if answer and ( #answer > 0 or answer.bogus ) then