]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Add guard for ratelimit checks
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 28 Nov 2015 13:13:38 +0000 (13:13 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 28 Nov 2015 13:13:38 +0000 (13:13 +0000)
src/plugins/lua/ratelimit.lua

index 844ca6448f7ea6b723d9a88f5f2df129acb76876..cb7394e2fe33e25f6f60bdd3df22a2c220f47a64 100644 (file)
@@ -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