diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-01-11 20:24:51 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-01-11 20:24:51 +0000 |
commit | 278328aa1cf603be38d62e43662a48e894731d88 (patch) | |
tree | 2c15d348e2f66c2d24c6e0ea547dc64aa292d5cd /src/lua/lua_url.c | |
parent | 0c533d20e6c22426ad8015f6568f373d9c8a5519 (diff) | |
download | rspamd-278328aa1cf603be38d62e43662a48e894731d88.tar.gz rspamd-278328aa1cf603be38d62e43662a48e894731d88.zip |
[Fix] Fix exclude flags setting
Diffstat (limited to 'src/lua/lua_url.c')
-rw-r--r-- | src/lua/lua_url.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c index 26dd1eb7c..2d9d64b39 100644 --- a/src/lua/lua_url.c +++ b/src/lua/lua_url.c @@ -1262,7 +1262,7 @@ lua_url_cbdata_fill_exclude_include (lua_State *L, if (pos_arg_type == LUA_TTABLE) { exclude_flags_mask = 0; /* Reset to no flags */ - for (lua_pushnil(L); lua_next(L, pos); lua_pop (L, 1)) { + for (lua_pushnil(L); lua_next(L, pos + 1); lua_pop (L, 1)) { int nmask = 0; if (lua_type (L, -1) == LUA_TSTRING) { |