# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1395254343 -3600
# Node ID b9213ddb860f51e68634962b37c2ad449c4cd12a
# Parent  6ee3953963335bee09c12b1e63c326069242bf52
mod_s2s_auth_dnssec_srv: Don't break DANE

diff -r 6ee395396333 -r b9213ddb860f mod_s2s_auth_dnssec_srv/mod_s2s_auth_dnssec_srv.lua
--- a/mod_s2s_auth_dnssec_srv/mod_s2s_auth_dnssec_srv.lua	Wed Mar 19 19:19:46 2014 +0100
+++ b/mod_s2s_auth_dnssec_srv/mod_s2s_auth_dnssec_srv.lua	Wed Mar 19 19:39:03 2014 +0100
@@ -43,6 +43,7 @@
 		local name = to_ascii(host_session.from_host);
 		if not name then return end
 		dns_lookup(function (answer)
+			if host_session.dane ~= nil then return end
 			if not answer.secure or #answer == 1
 				and answer[1].srv.target == "." then return end
 			local srv_hosts = { answer = answer };