aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_buffer.c')
-rw-r--r--src/lua/lua_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_buffer.c b/src/lua/lua_buffer.c
index 5d00db585..7a23a9579 100644
--- a/src/lua/lua_buffer.c
+++ b/src/lua/lua_buffer.c
@@ -240,7 +240,7 @@ static int
lua_io_dispatcher_set_policy (lua_State *L)
{
struct rspamd_io_dispatcher_s *io_dispatcher = lua_check_io_dispatcher (L);
- gint policy, limit = -1;
+ gint policy, limit = 0;
if (io_dispatcher) {
policy = lua_tonumber (L, 2);