]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
modules/policy: QTRACE policy; cleanup
authorGrigorii Demidov <grigorii.demidov@nic.cz>
Wed, 18 Jan 2017 12:15:05 +0000 (13:15 +0100)
committerGrigorii Demidov <grigorii.demidov@nic.cz>
Wed, 18 Jan 2017 12:15:05 +0000 (13:15 +0100)
modules/policy/policy.lua

index 5934aea4a823c89999e580dd2b0b9473edeaa600..57fdacfaa09b284918243c0f404d9d26d69d789a 100644 (file)
@@ -229,7 +229,7 @@ function policy.enforce(state, req, action)
                        return kres.DONE
                end
        elseif action == policy.QTRACE then
-               req.options = bit.band(bit.bor(req.options, kres.query.TRACE))
+               req.options = bit.bor(req.options, kres.query.TRACE)
        elseif type(action) == 'function' then
                return action(state, req)
        end