mod_s2s_auth_dane: Unreference DNS lookup when reply arrives (thanks LordVan)
authorKim Alvefur <zash@zash.se>
Mon, 19 May 2014 16:28:43 +0200
changeset 1414 48141957f719
parent 1413 cfe360d9d82c
child 1415 8791fa8a18c8
mod_s2s_auth_dane: Unreference DNS lookup when reply arrives (thanks LordVan)
mod_s2s_auth_dane/mod_s2s_auth_dane.lua
--- 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;