]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix exclude flags setting
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Jan 2022 20:24:51 +0000 (20:24 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Jan 2022 20:24:51 +0000 (20:24 +0000)
src/lua/lua_url.c

index 26dd1eb7c374cd7fbadba85d2c27cfccba5bf12d..2d9d64b39978d3ef507fc769863b1e36144870a3 100644 (file)
@@ -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) {