# HG changeset patch # User Kim Alvefur # Date 1394370564 -3600 # Node ID c38f163f18b900aec7c14422d9f1dcd80b4b716e # Parent ae0558230e3dc32b52990078ff658d9b2c8c5ac2 mod_s2s_auth_dane: Fix inverted nil check diff -r ae0558230e3d -r c38f163f18b9 mod_s2s_auth_dane/mod_s2s_auth_dane.lua --- 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