diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-28 13:13:38 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-28 13:13:38 +0000 |
commit | 495c0241e10ea5dbb00c7d38020923802cf80d6b (patch) | |
tree | 9dafa69fc61a09338c4c8ffd4d2bf756ffb1b7a7 /src/plugins/lua | |
parent | ce275d9b2cb87c1c2d82ef2e3e18e339ed09e511 (diff) | |
download | rspamd-495c0241e10ea5dbb00c7d38020923802cf80d6b.tar.gz rspamd-495c0241e10ea5dbb00c7d38020923802cf80d6b.zip |
Add guard for ratelimit checks
Diffstat (limited to 'src/plugins/lua')
-rw-r--r-- | src/plugins/lua/ratelimit.lua | 4 |
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 |