diff options
-rw-r--r-- | src/lua/lua_task.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 2293c55ce..e8814e871 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1935,7 +1935,7 @@ lua_task_cache_set (lua_State *L) gint res = RSPAMD_TASK_CACHE_NO_VALUE, param = RSPAMD_TASK_CACHE_NO_VALUE;; param = lua_tonumber (L, 3); - if (task && k && param > 0) { + if (task && k && param >= 0) { res = rspamd_task_re_cache_check (task, k); rspamd_task_re_cache_add (task, k, param); } |