Changeset

1337:c38f163f18b9

mod_s2s_auth_dane: Fix inverted nil check
author Kim Alvefur <zash@zash.se>
date Sun, 09 Mar 2014 14:09:24 +0100
parents 1336:ae0558230e3d
children 1338:eca8c480891e 1340:3ffd64b4ab59
files mod_s2s_auth_dane/mod_s2s_auth_dane.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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