These are chat archives for CZ-NIC/knot-resolver
Knot Resolver: Resolve DNS names like it's 2019! https://www.knot-resolver.cz/support/
[system] interactive mode > [ ta ] key: 19036 state: Valid [ ta ] next refresh for . in 0.0027777777777778 hours PANIC: unprotected error in call to Lua API (8)
-- Evaluate packet in given rules to determine policy action function policy.evaluate(rules, req, query, state) print("HERE") for i = 1, #rules do print("HERE2") local rule = rules[i] print("HERE3") if not rule.suspended then print("HERE4") local action = rule.cb(req, query) print("HERE5") if action ~= nil then rule.count = rule.count + 1 local next_state = policy.enforce(state, req, action) if next_state then -- Not a chain rule, return next_state -- stop on first match end end end end return state end
req = kres.request_t(req). It's just a pointer cast, and it's even supposed to work on invalid pointers.