From: Vsevolod Stakhov Date: Tue, 11 Jan 2022 20:24:51 +0000 (+0000) Subject: [Fix] Fix exclude flags setting X-Git-Tag: 3.2~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=278328aa1cf603be38d62e43662a48e894731d88;p=thirdparty%2Frspamd.git [Fix] Fix exclude flags setting --- diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c index 26dd1eb7c3..2d9d64b399 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) {