mod_s2s_auth_dane/mod_s2s_auth_dane.lua
changeset 1656 9a3d2f1479a4
parent 1646 a4a6b4be973a
child 1677 aac5e56615ce
--- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Tue Apr 07 17:35:05 2015 +0200
+++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Tue Apr 07 17:35:20 2015 +0200
@@ -111,8 +111,8 @@
 					if dane_answer.bogus then
 						dane.bogus = dane_answer.bogus;
 					elseif dane_answer.secure then
-						for _, record in ipairs(dane_answer) do
-							t_insert(dane, record);
+						for _, dane_record in ipairs(dane_answer) do
+							t_insert(dane, dane_record);
 						end
 					end
 					if n == 0 then
@@ -261,8 +261,8 @@
 				elseif use == 0 or use == 2 then
 					supported_found = true;
 					local chain = session.conn:socket():getpeerchain();
-					for i = 1, #chain do
-						local cacert = chain[i];
+					for c = 1, #chain do
+						local cacert = chain[c];
 						local is_match = one_dane_check(tlsa, cacert);
 						if is_match ~= nil then
 							supported_found = true;