From: Vsevolod Stakhov Date: Mon, 14 May 2018 09:39:59 +0000 (+0100) Subject: [Minor] Fix variable extraction logic X-Git-Tag: 1.7.5~35 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dd3228b070a1091e2d303e8980092f755c242674;p=rspamd.git [Minor] Fix variable extraction logic --- diff --git a/src/lua/lua_mempool.c b/src/lua/lua_mempool.c index 58630904f..3ace7055d 100644 --- a/src/lua/lua_mempool.c +++ b/src/lua/lua_mempool.c @@ -479,7 +479,7 @@ lua_mempool_get_variable (lua_State *L) while (cur != NULL) { fstr = cur->data; lua_pushlstring (L, fstr->str, fstr->len); - lua_rawseti (L, -1, i); + lua_rawseti (L, -2, i); i ++; cur = g_list_next (cur); }