changeset 1414:48141957f719

mod_s2s_auth_dane: Unreference DNS lookup when reply arrives (thanks LordVan)
author Kim Alvefur <zash@zash.se>
date Mon, 19 May 2014 16:28:43 +0200
parents cfe360d9d82c
children 8791fa8a18c8
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	Mon May 19 11:56:49 2014 +0200
+++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Mon May 19 16:28:43 2014 +0200
@@ -63,6 +63,7 @@
 		local name = host_session.from_host and idna_to_ascii(host_session.from_host);
 		if not name then return end
 		host_session.dane = dns_lookup(function (answer)
+			host_session.dane = false;
 			if not answer.secure then
 				if cb then return cb(a,b,c,e); end
 				return;