Changeset

1652:9a3d2f1479a4

mod_s2s_auth_dane: Cleanup [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 07 Apr 2015 17:35:20 +0200
parents 1651:933403ee07ec
children 1653:1fe899527ee5
files mod_s2s_auth_dane/mod_s2s_auth_dane.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;