]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
modules/policy: local variable declarations were fixed; cleanup
authorgrid <grigorii.demidov@nic.cz>
Wed, 13 Dec 2017 13:50:54 +0000 (14:50 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Mon, 8 Jan 2018 11:01:01 +0000 (12:01 +0100)
modules/policy/policy.lua

index 2773c5fe66bc2c730a45685fd1bcce97f16025dd..f662a75d7a102b20586845c6050db7e80e2c5720 100644 (file)
@@ -143,7 +143,7 @@ local function tls_forward(target)
                        if hostname == nil then
                                assert(false, 'hostname(s) is absent in TLS_FORWARD target')
                        end
-                       ca_files_local = {}
+                       local ca_files_local = {}
                        if type(ca_file) == 'table' then
                                for _, v in pairs(ca_file) do
                                        table.insert(ca_files_local, v)