]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
table_print: fix indentation
authorPetr Špaček <petr.spacek@nic.cz>
Thu, 11 Apr 2019 12:44:06 +0000 (14:44 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Thu, 11 Apr 2019 12:44:46 +0000 (14:44 +0200)
daemon/lua/sandbox.lua.in

index 6996d479d01be2643432f3ebfcaf0bfd43d91187..1b4e775d13cd8dc9f3ff2ad677846d98d03a5e81 100644 (file)
@@ -386,14 +386,14 @@ local function funcsign(f)
                                                table.insert(func_args, k)
                                        end
                                end
-                       if debug.getlocal(2, -1) then
-                               -- vararg function
-                               table.insert(func_args, "...")
+                               if debug.getlocal(2, -1) then
+                                       -- vararg function
+                                       table.insert(func_args, "...")
+                               end
+                               debug.sethook(oldhook)
+                               error('aborting the call to introspected function')
                        end
-                       debug.sethook(oldhook)
-                       error('aborting the call to introspected function')
                end
-       end
        oldhook = debug.sethook(hook, "c")  -- invoke hook() on function call
        -- fake arguments, necessary to detect vararg functions
        local fakearg = {}