]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
trust_anchors: add parameter check to set_insecure
authorPetr Špaček <petr.spacek@nic.cz>
Fri, 21 Dec 2018 10:22:12 +0000 (11:22 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 9 Jan 2019 15:24:00 +0000 (16:24 +0100)
daemon/lua/trust_anchors.lua.in

index 480b66a69370625f76e9c080f86545b9794f6015..29e3e30ea115cb2d2a38e7565cc856f93eef24a5 100644 (file)
@@ -582,6 +582,7 @@ trust_anchors = {
        end,
        -- Negative TA management
        set_insecure = function (list)
+               assert(type(list) == 'table', 'parameter must be list of domain names (e.g. {"a.test", "b.example"})')
                local store = kres.context().negative_anchors
                C.kr_ta_clear(store)
                for i = 1, #list do