From d432e770a6a462ca9d74a0088742228672915a34 Mon Sep 17 00:00:00 2001 From: bol-van Date: Mon, 2 Feb 2026 19:29:11 +0300 Subject: [PATCH] zapret-lib: fix broken verdict_aggregate --- lua/zapret-lib.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/zapret-lib.lua b/lua/zapret-lib.lua index 6d6fc5b..1c6f917 100644 --- a/lua/zapret-lib.lua +++ b/lua/zapret-lib.lua @@ -174,12 +174,12 @@ function apply_execution_plan(desync, instance) end -- produce resulting verdict from 2 verdicts function verdict_aggregate(v1, v2) - local v - local vn = bitor(bitand(v1,VERDICT_PRESERVE_NEXT),bitand(v2,VERDICT_PRESERVE_NEXT)) - v1 = bitand(v1, VERDICT_MASK) - v2 = bitand(v2, VERDICT_MASK) v1 = v1 or VERDICT_PASS v2 = v2 or VERDICT_PASS + local vn = bitor(bitand(v1,VERDICT_PRESERVE_NEXT),bitand(v2,VERDICT_PRESERVE_NEXT)) + local v + v1 = bitand(v1, VERDICT_MASK) + v2 = bitand(v2, VERDICT_MASK) if v1==VERDICT_DROP or v2==VERDICT_DROP then v=VERDICT_DROP elseif v1==VERDICT_MODIFY or v2==VERDICT_MODIFY then