aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 0bc86533b..cd33b43ae 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -4819,7 +4819,7 @@ lua_task_get_flags (lua_State *L)
flags = task->flags;
- for (i = 0; i < RSPAMD_TASK_FLAG_MAX_SHIFT; i ++) {
+ for (i = 0; i <= RSPAMD_TASK_FLAG_MAX_SHIFT; i ++) {
bit = (1U << i);
if (flags & bit) {