diff mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 1700:ab3175685f94

mod_s2s_auth_dane: Don't count number of RRs in DNS reply if the DNS lib already did
author Kim Alvefur <zash@zash.se>
date Wed, 06 May 2015 00:51:46 +0200
parents 7f4c64cfed09
children 9b429fc9e8a0
line wrap: on
line diff
--- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Tue May 05 15:39:15 2015 +0200
+++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Wed May 06 00:51:46 2015 +0200
@@ -94,7 +94,7 @@
 				return cb(host_session);
 			end
 
-			local n = #answer
+			local n = answer.n or #answer;
 			if n == 0 then
 				-- No SRV records, we could proceed with the domainname and
 				-- default port but that will currently not work properly since