aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-28 13:13:38 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-28 13:13:38 +0000
commit495c0241e10ea5dbb00c7d38020923802cf80d6b (patch)
tree9dafa69fc61a09338c4c8ffd4d2bf756ffb1b7a7 /src/plugins/lua
parentce275d9b2cb87c1c2d82ef2e3e18e339ed09e511 (diff)
downloadrspamd-495c0241e10ea5dbb00c7d38020923802cf80d6b.tar.gz
rspamd-495c0241e10ea5dbb00c7d38020923802cf80d6b.zip
Add guard for ratelimit checks
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/ratelimit.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua
index 844ca6448..cb7394e2f 100644
--- a/src/plugins/lua/ratelimit.lua
+++ b/src/plugins/lua/ratelimit.lua
@@ -281,7 +281,9 @@ local function rate_test_set(task, func)
end, rcpts)
end
- func(task, args)
+ if #args > 0 then
+ func(task, args)
+ end
end
--- Check limit